Python 仅提供HBase.zookeeper.quorum时连接到HBase

Python 仅提供HBase.zookeeper.quorum时连接到HBase,python,hbase,apache-zookeeper,happybase,Python,Hbase,Apache Zookeeper,Happybase,当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> </pro

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>
这显示了以下错误:

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

我也犯了同样的错误,因为没有运行thrift服务器。修正方法:

hbase thrift start -threadpool

Happybase使用hadoop thrift API与HBase通信
hbase thrift start -threadpool