phoenix-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Will Xu <>
Subject Re: Phoenix database adapter for Python not working
Date Fri, 16 Dec 2016 18:38:13 GMT
A few things.

1. Are you on 0.5 version of the connector?

$>pip freeze | grep phoenixdb

Should be==> phoenixdb==0.5

2. Can you try curl http://localhost:8765 to see if the server is actually running? If you
open the page in browser you should see a Jetty 404 page.

PQS is a think wrapper around Phoenix client. It's actually a service. If you have sqlline-thin
client you can test it out.

$>bin/ http://localhost:8765

From: Cui Lin <>
Sent: Friday, December 16, 2016 10:29 AM
Subject: Phoenix database adapter for Python not working

I followed the instruction from

to connect Hbase in cloudera cluster, but I got the following error below.

>>> import phoenixdb
>>> database_url = 'http://localhost:8765/'
>>> conn = phoenixdb.connect(database_url, autocommit=True)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/root/anaconda2/lib/python2.7/site-packages/phoenixdb/", line 63, in connect
File "/root/anaconda2/lib/python2.7/site-packages/phoenixdb/", line 152, in connect
raise errors.InterfaceError('Unable to connect to the specified service', e)
phoenixdb.errors.InterfaceError: ('Unable to connect to the specified service', error(111,
'Connection refused'), None, None)

I can create table using localhost:2181:/hbase or even use ./ to
import CSV, why the python adaopter does not work? Could someone give me a simple example
that allows the adapter to connect Hbase in Cloudera?

I've been trying to find the solution for days... please help!

Best regards!


View raw message