运行beeline时出错:HiveVariableSource

时间:2018-10-20 08:33:40

标签: hadoop hive beeline

当我尝试运行beeline时,出现此错误:

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/hiv
e/conf/HiveVariableSource
        at org.apache.hive.beeline.BeeLine.<init>(BeeLine.java:129)
        at org.apache.hive.beeline.BeeLine.<init>(BeeLine.java:511)
        at org.apache.hive.beeline.BeeLine.mainWithInputRedirection(BeeLine.java
:501)
        at org.apache.hive.beeline.BeeLine.main(BeeLine.java:485)
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.hive.conf.HiveVar
iableSource
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 4 more

hadoop,hiveserver2,hive运行正常,问题出在beeline。还有其他的直线配置吗? 我正在Windows上工作。

0 个答案:

没有答案