运输例外

2024-01-01

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

有人可以查看下面的例外情况并让我知道是否有任何节俭特定设置或解决此问题的任何指导。

谢谢。

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
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

运输例外 的相关文章