0

我正在尝试使用 HappyBase 从 python 连接到 hbase

这是正在尝试的代码

>import happybase
>connection = happybase.Connection(host = <myHost>,port = <myPort>)
   <happybase.connection.Connection object at 0x7ff46c527bd0>
>connection.tables()
   ---> runs for real long time never ending <----

当我尝试访问表格时也是如此

>import happybase
>connection = happybase.Connection(host = <someHost>,port = <somePort>, autoconnect=False)
>connection.open()
>table = connection.table('myTable')
   <happybase.table.Table name='myTable'>
>row = table.row('1234')
    -----> Nothing shows up - takes forever <-------

有人可以帮助我了解发生了什么问题。

顺便说一句,我正在使用:

java 版本 "1.8.0_60"
Java(TM) SE Runtime Environment (build1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM(build 25.60-b23,混合模式)

问候

4

1 回答 1

0

我必须启动节俭服务器并连接到它才能连接到 hbase。

希望这对其他人有帮助!

于 2016-07-01T09:01:59.453 回答