python - starbase gives 405 when trying to connect to hbase -


i'm trying read , write hbase through rest api, have running on machine @ port 8085 (can see @ xxxxx:8085/rest.jsp)

i've made script test , gives me 405 (i think it's "method not allowed" i'm not sure):

#!/usr/bin/env python  starbase import connection socket import gethostname  hostname = gethostname()  print "hostname: %r" % hostname  con = connection(host=hostname, port=8085)  print con.tables() 

i think have problem prerequisites i'm not sure, perhaps more experience can help.

are there nicer solutions connect hbase , python?

thanks.

starbase works stargate http://wiki.apache.org/hadoop/hbase/stargate. stargate runs on port 8000 default. if have stargate running, should able see list of tables accessing xxxxx:8000 (8085 in case). if don't see that, you're running old , deprecated version of rest api.

you try apache thrift framework http://thrift.apache.org or happybase (which based on apache thrift framework) https://github.com/wbolster/happybase.

apache thrift faster rest api.


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -