Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/312.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法使用python phoenixdb连接到phoenix_Python_Curl_Hbase_Phoenix - Fatal编程技术网

无法使用python phoenixdb连接到phoenix

无法使用python phoenixdb连接到phoenix,python,curl,hbase,phoenix,Python,Curl,Hbase,Phoenix,我正在尝试使用python插件“phoenixdb”连接到phoenix 我正在与phoenix机器从同一网络上的服务器连接 这是我正在使用的代码 import phoenixdb import phoenixdb.cursor database_url = 'http://datanode4:2181' try: conn = phoenixdb.connect(database_url, autocommit=True,user='',password='') cursor

我正在尝试使用python插件“
phoenixdb
”连接到phoenix

我正在与phoenix机器从同一网络上的服务器连接

这是我正在使用的代码

import phoenixdb
import phoenixdb.cursor
database_url = 'http://datanode4:2181'
try:
    conn = phoenixdb.connect(database_url, autocommit=True,user='',password='')
    cursor = conn.cursor()
    cursor.execute("SELECT * FROM TESTTABLE")
except Exception as e:
    print(e)
finally:
    conn.close()
我得到以下错误

phoenixdb.errors.InterfaceError:(“RPC请求失败”,无,无, RemoteDisconnected(“远程端关闭连接,无响应”)

即使当我尝试使用curl时,我也会从服务器上得到
“空回复”

你们能帮帮我吗