ERROR beeline.ClassNameCompleter: Fail to parse the class na

来源:互联网 发布:pc软件10 编辑:程序博客网 时间:2024/05/21 06:12
在使用beeline链接Hive服务的时候,报了下面的这个错误:
beeline> !connect jdbc:hive2//h2slave1:10000scan complete in 1ms16/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 596msNo known driver to handle "jdbc:hive2//h2slave1:10000"

解决:
  其实这个问题是由于jdbc协议地址写错造成的,在hive2之后少了个“:”
改成以下这个形式即可:
beeline> !connect jdbc:hive2://h2slave1:10000
0 0