2016-07-01 10 views
0

Am versuchen, hbase von PythonHappyBase - nicht zeigt Ergebnisse

hier mit HappyBase zu verbinden ist der Code, der

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

Same versuche, wenn ich versuche, eine Tabelle

>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 <------- 
zugreifen

Kann mir jemand helfen zu verstehen, was schief läuft?

Btw, sind mit:

java version "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, mixed mode)

Grüße

Antwort

0

ich thrift-Server starten musste & damit verbinden inorder hbase zu verbinden.

Hoffe das hilft anderen !!