- 启动hiveserver2:
cd $HIVE_HOME bin/hiveserver2(默认是10000端口)
sudo netstat -anp|grep 10000 - pyhs2连接hive,报错如下:
raise Pyhs2Exception(res.status.errorCode, res.status.errorMessage) Pyhs2Exception: "Error while compiling statement: FAILED: SemanticException Unable to fetch table tbl_card_log. javax.jdo.JDODataStoreException: The last packet successfully received from the server was 2,450,497 milliseconds ago. The last packet sent successfully to the server was 2,450,497 milliseconds ago. is longer than the server configured value of 'wait_timeout'. You should consider either expiring and/or testing connection validity before use in your application, increasing the server configured values for client timeouts, or using the Connector/J connection property 'autoReconnect=true' to avoid this problem
增加hiveserver2的客户端超时时间,修改hive-site.xml
<name>hive.server.read.socket.timeout</name><value>3600s</value>
<name>hive.server2.async.exec.shutdown.timeout</name><value>3600s</value>
另外,设置pyhs2.connect的timeout参数
pyhs2连接超时问题
最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
- 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
- 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
- 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
推荐阅读更多精彩内容
- =========================================================...
- 最近在将本地的JavaWeb项目部署到服务器上之后遇到的一个奇怪问题 在部署完成后,网站当时可以正常工作,但是第二...
- Spark SQL, DataFrames and Datasets Guide Overview SQL Dat...