启动beeline时出错,因为线程“main”java.lang.noclassdeffounderror中出现异常:org/apache/hadoop/hiv e/conf/hiveconf

wmvff8tz  于 2021-06-27  发布在  Hive
关注(0)|答案(0)|浏览(316)

我正在windows8上工作,我已经成功安装了hadoop和hive。hiveserver2正在10002中运行。Hive也是。但是当我试图通过输入以下命令连接到beeline:beeline!连接jdbc:hive2://localhost:10000/ 我有这个错误

Fichier introuvable
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/hiv
e/conf/HiveConf
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
        at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
        at java.lang.Class.getMethod0(Class.java:3018)
        at java.lang.Class.getMethod(Class.java:1784)
        at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544
)
        at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)

Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.hive.conf.HiveCon
f
        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)
        ... 7 more

我无法修复错误的来源。我在用mysql。

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题