尝试连接WAN中的HBase时出现TTransportException

时间:2017-04-20 11:56:41

标签: python hbase

我试图使用python将数据插入HBase。我使用happybase,当我在HBase运行的同一台机器上进行测试时,它运行良好。它也可以在与HBase机器相同的局域网中运行。但是,当我尝试在WAN中使用类似的方案时,我得到了一个TTransportException。我需要做一些配置吗?有人可以帮帮我吗?谢谢你的帮助:)

更新

Traceback (most recent call last):
  File "test.py", line 17, in <module>
    conn, batch = connect_to_hbase(host, namespace, table_name, batch_size)
  File "test.py", line 6, in connect_to_hbase
table_prefix_separator=":")
  File "/Library/Python/2.7/site-packages/happybase/connection.py", line 148, in __init__
    self.open()
  File "/Library/Python/2.7/site-packages/happybase/connection.py", line 176, in open
    self.transport.open()
  File "thriftpy/transport/buffered/cybuffered.pyx", line 34, in thriftpy.transport.buffered.cybuffered.TCyBufferedTransport.open (thriftpy/transport/buffered/cybuffered.c:1383)
  File "/Library/Python/2.7/site-packages/thriftpy/transport/socket.py", line 104, in open
    message="Could not connect to %s" % str(addr))
thriftpy.transport.TTransportException: TTransportException(message="Could not connect to ('125.141.200.35', 9090)", type=1)

0 个答案:

没有答案