2

何时hbase-site.xml给出

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <property>
        <name>hbase.zookeeper.quorum</name>
        <value>a.example.com,b.example.com,c.example.com</value>
    </property>
    <property>
        <name>hbase.zookeeper.property.clientPort</name>
        <value>2181</value>
    </property>
</configuration>

如何使用happybase 连接到HBase?

我试图连接到其中之一

import happybase
conn = happybase.Connection('a.example.com', port=2181)
conn.open()
conn.close()

这显示以下错误:

...
thrift.transport.TTransport.TTransportException: Could not connect to a.example.com:2181
4

1 回答 1

0

我遇到了同样的错误,因为没有运行 Thrift 服务器。通过以下方式修复它:

hbase thrift start -threadpool
于 2014-11-24T19:33:45.320 回答