hive报错:Logging initialized using configuration in jar:file:/home/software/apache-hive-1.2.0-bin/lib/
在hive的bin目录下输入sh hive进入客户端时报错:
[[email protected] apache-hive-1.2.0-bin]# cd bin
[[email protected] bin]# sh hive
Logging initialized using configuration in jar:file:/home/software/apache-hive-1.2.0-bin/lib/hive-common-1.2.0.jar!/hive-log4j.properties
Exception in thread “main” java.lang.RuntimeException: java.net.ConnectException: Call From hadoop01/10.42.189.44 to hadoop01:9000 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused
at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:519)
at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:677)
at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:621)
原因是没关防火墙,关掉防火墙后正常。