我正在尝试使用python将数据插入hbase。我使用happybase,当我在运行hbase的同一台机器上进行测试时,它工作了。而且它在同一个局域网内的一台机器上工作,就像hbase机器一样。然而,当我尝试在广域网中使用类似的方案时,我得到了一个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)
暂无答案!
目前还没有任何答案,快来回答吧!