Невозможно запустить узел улья в windows: java .lang.NoClassDefFoundError: org / apache / hadoop / hive / conf / HiveVariableSource - PullRequest
0 голосов
/ 04 мая 2020

Я установил куст на windows 10, используя эту ссылку и CLI куста работает правильно, но не может работать beeline , получая следующую ошибку.

C:\WINDOWS\system32>beeline
Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/hadoop/hive/conf/HiveVariableSource
        at org.apache.hive.beeline.BeeLine.<init>(BeeLine.java:125)
        at org.apache.hive.beeline.BeeLine.<init>(BeeLine.java:508)
        at org.apache.hive.beeline.BeeLine.mainWithInputRedirection(BeeLine.java:498)
        at org.apache.hive.beeline.BeeLine.main(BeeLine.java:482)
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.hive.conf.HiveVariableSource
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 4 more

C:\Windows\System32>

До этого я пытался запустить hiveserver2 и получал следующее:

C:\WINDOWS\system32>hiveserver2
'hiveserver2' is not recognized as an internal or external command,
operable program or batch file.

C:\WINDOWS\system32>hive --service hiveserver2
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/apache-hive-2.1.0-bin/lib/hive-jdbc-2.1.0- 
standalone.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/apache-hive-2.1.0-bin/lib/log4j-slf4j-impl- 
2.4.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/hadoop-2.8.0/share/hadoop/common/lib/slf4j-log4j12- 
1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only 
errors to the console.

Помогите мне с этим, поскольку я очень новичок.

...