gpt4 book ai didi

python - 传输异常

转载 作者:可可西里 更新时间:2023-11-01 14:25:27 25 4
gpt4 key购买 nike

我正在尝试导入 happybase 但在连接时收到以下错误消息。我有 Hadoop 伪节点集群和 Hbase 已经在运行。安装的组件版本如下,Hadoop 版本 - 1.0.4Hbase 版本 - 0.94.4happybase -0.4

有人可以查看下面的异常(exception)情况并让我知道是否有任何节俭特定设置或修复此问题的任何指导。

谢谢。

Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) 
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

import happybase

connection = happybase.Connection('localhost')

Traceback (most recent call last):

File "<stdin>", line 1, in <module>
  File "/Library/Python/2.6/site-packages/happybase/api.py", line 121, in __init__
    self.open()

  File "/Library/Python/2.6/site-packages/happybase/api.py", line 138, in open
    self.transport.open()

  File "/Library/Python/2.6/site-packages/thrift/transport/TTransport.py", line 149, in open
    return self.__trans.open()

  File "/Library/Python/2.6/site-packages/thrift/transport/TSocket.py", line 99, in open
    message=message)

thrift.transport.TTransport.TTransportException: Could not connect to localhost:9090

最佳答案

确保在尝试连接之前启动了 thrift 服务器。

hbase thrift start -threadpool

关于python - 传输异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14701608/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com