HiveServer2给出ConnectionRefused错误?

时间:2017-03-06 11:23:26

标签: hadoop hive

在我的应用程序中,我使用HiveServer2 url连接到hive以查询hive表(表是HbaseStorageHandler表)。最初的应用程序正常运行一段时间,2或3小时后应用程序将异常作为ConnectionRefused。如果我重新启动hive服务,有时应用程序将正常工作。此过程正在重复。所以我无法找到原因。任何人都知道原因或解决方案请分享我如何解决此问题。

这些都在hive日志中:

CRIT Supervisor running as root (no user in config file)
 INFO RPC interface 'supervisor' initialized
 CRIT Server 'unix_http_server' running without any HTTP authentication checking
 INFO daemonizing the supervisord process
 supervisord started with pid 4593
 CRIT Supervisor running as root (no user in config file)
 INFO RPC interface 'supervisor' initialized
 CRIT Server 'unix_http_server' running without any HTTP authentication checking
 INFO supervisord started with pid 4593
 INFO spawned: 'zookeeper' with pid 4731
 INFO spawned: 'hive' with pid 4732
 INFO spawned: 'hive2' with pid 4733
 INFO exited: zookeeper (exit status 127; not expected)
 INFO spawned: 'zookeeper' with pid 4909
 INFO exited: zookeeper (exit status 127; not expected)
 INFO spawned: 'zookeeper' with pid 4928
 INFO exited: zookeeper (exit status 127; not expected)
 INFO spawned: 'zookeeper' with pid 4956
 INFO exited: zookeeper (exit status 127; not expected)
 INFO success: hive entered RUNNING state, process has stayed up for > than 10 seconds (startsecs)
 INFO success: hive2 entered RUNNING state, process has stayed up for > than 10 seconds (startsecs)
 INFO spawned: 'zookeeper' with pid 4966
 INFO exited: zookeeper (exit status 127; not expected)
 INFO spawned: 'zookeeper' with pid 4978
 INFO exited: zookeeper (exit status 127; not expected)
 INFO spawned: 'zookeeper' with pid 5008
 INFO exited: zookeeper (exit status 127; not expected)
 INFO spawned: 'zookeeper' with pid 5025
 INFO exited: zookeeper (exit status 127; not expected)
 INFO spawned: 'zookeeper' with pid 5038
 INFO exited: zookeeper (exit status 127; not expected)
 INFO spawned: 'zookeeper' with pid 5072
 INFO exited: zookeeper (exit status 127; not expected)

但是在应用程序日志中它给出了:

Exception in DB Connection java.sql.SQLException: Could not open client transport with JDBC Uri: jdbc:hive2://10.76.1.181:10000/: java.net.ConnectException: Connection refused (Connection refused)
Sat Mar 04 17:50:42 IST 2017 : Exception in DB Connection java.sql.SQLException: Could not open client transport with JDBC Uri: jdbc:hive2://10.76.1.181:10000/: java.net.ConnectException: Connection refused (Connection refused)
Sat Mar 04 17:50:42 IST 2017 : Exception in DB Connection java.sql.SQLException: Could not open client transport with JDBC Uri: jdbc:hive2://10.76.1.181:10000/: java.net.ConnectException: Connection refused (Connection refused)
Sat Mar 04 17:50:42 IST 2017 : Exception in DB Connection java.sql.SQLException: Could not open client transport with JDBC Uri: jdbc:hive2://10.76.1.181:10000/: java.net.ConnectException: Connection refused (Connection refused)
Sat Mar 04 17:50:42 IST 2017 : Exception in DB Connection java.sql.SQLException: Could not open client transport with JDBC Uri: jdbc:hive2://10.76.1.181:10000/: java.net.ConnectException: Connection refused (Connection refused)
Sat Mar 04 17:50:42 IST 2017 : Exception in DB Connection java.sql.SQLException: Could not open client transport with JDBC Uri: jdbc:hive2://10.76.1.181:10000/: java.net.ConnectException: Connection refused (Connection refused)

0 个答案:

没有答案