先上報錯,百度無數SuperSet的解決辦法整了三四天無果後,打了兩天遊戲突然想到了個找問題的辦法
INFO:thrift.transport.TSocket:Could not connect to ('192.168.228.131', 10000)
Traceback (most recent call last):
File "/opt/module/miniconda3/envs/superset/lib/python3.6/site-packages/thrift/transport/TSocket.py", line 113, in open
handle.connect(sockaddr)
File "/opt/module/miniconda3/envs/superset/lib/python3.6/site-packages/gevent/_socket3.py", line 400, in connect
raise error(err, strerror(err))
ConnectionRefusedError: [Errno 111] Connection refused
ERROR:thrift.transport.TSocket:Could not connect to any of [('192.168.228.131', 10000)]
Unexpected error Could not connect to any of [('192.168.228.131', 10000)]
ERROR:superset.views.core:Unexpected error Could not connect to any of [('192.168.228.131', 10000)]
[2020-05-17 21:04:52 +0800] [7951] [WARNING] Error sending message to statsd
Traceback (most recent call last):
File "/opt/module/miniconda3/envs/superset/lib/python3.6/site-packages/gunicorn/instrument/statsd.py", line 127, in _sock_send
self.sock.send(msg)
ConnectionRefusedError: [Errno 111] Connection refused
網上根本找不到拒絕連接的,一般都是報錯的
先說解決辦法:我改了三點,哪一點真正解決的自己驗證
第一點:首先集羣要啓動,我一開始集羣沒啓動瘋狂連接,全是拒絕連接。然後啓動Hive服務,到hive的bin目錄下輸入 ./hive --service hiveserver2
開啓服務
第二點:在網上找的下載pyhive都是直接使用的pip install pyhive
,然後我去官網查了下默認下載的最新版本0.6.2是2020的太新了,所以換了個版本換成上一個版本pip install pyhive==0.6.0
這三個也下載上
pip install sasl
pip install thrift
pip install thrift-sasl
第三點:還有修改hive.site.xml文件增加
<property>
<name>hive.server2.authentication</name>
<value>NONE</value>
</property>