本文介绍了运输异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I'm trying to import happybase but gets the following error message while connecting.I have Hadoop pseudonode cluster and Hbase already running.Version of the components installed are as follows,Hadoop version - 1.0.4Hbase version - 0.94.4happybase -0.4

有人可以查看下面的例外情况,让我知道,如果有任何特定的节俭设置或任何指导,以获得固定。

Can someone have a look into the exceptions below and let me know, if any thrift specific settings or any guidance in getting this fixed.

谢谢。

Thank you.

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


推荐答案

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

make sure you have thrift server started before you try to connect.

hbase thrift start -threadpool

这篇关于运输异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-30 00:23