在使用beeline链接Hive服务的时候,报了下面的这个错误:
beeline> !connect jdbc:hive2//h2slave1:10000
scan complete in 1ms
16/07/27 11:40:54
[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 (没有那个文件或目录)
16/07/27 11:40:54
[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 (没有那个文件或目录)
16/07/27 11:40:54
[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 (没有那个文件或目录)
scan complete in 596ms
No known driver to handle "jdbc:hive2//h2slave1:10000"
解决:
其实这个问题是由于jdbc协议地址写错造成的,在hive2之后少了个“:”
改成以下这个形式即可:
beeline> !connect jdbc:hive2://h2slave1:10000
转载请注明原文地址: https://ju.6miu.com/read-650179.html