Hiveserver2 beeline error java.io.FileNotFoundException: minlog-1.2.jar

完整出错如下

beeline> !connect jdbc:hive2//127.0.0.1:10000 root org.apache.hive.jdbc.HiveDriver
scan complete in 1ms
16/11/01 20:47:52 [main]: ERROR beeline.ClassNameCompleter: Fail to parse the class name from the Jar file due to the exception:java.io.FileNotFoundException: minlog-1.2.jar (No such file or directory)
16/11/01 20:47:52 [main]: ERROR beeline.ClassNameCompleter: Fail to parse the class name from the Jar file due to the exception:java.io.FileNotFoundException: objenesis-1.2.jar (No such file or directory)
16/11/01 20:47:52 [main]: ERROR beeline.ClassNameCompleter: Fail to parse the class name from the Jar file due to the exception:java.io.FileNotFoundException: reflectasm-1.07-shaded.jar (No such file or directory)
scan complete in 508ms
No known driver to handle "jdbc:hive2//127.0.0.1:10000"

最后发现把连接命令改为如下,就解决问题了

 !connect jdbc:hive2://localhost:10000 root

你可能感兴趣的:(hive)