Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Excute Hive command in container hs2 #7

Open
maico-s4 opened this issue Dec 27, 2021 · 0 comments
Open

Excute Hive command in container hs2 #7

maico-s4 opened this issue Dec 27, 2021 · 0 comments

Comments

@maico-s4
Copy link

When I turn on the docker-compose with hadoop-hive-3.1.x-postgres,
Sytem return Error massage like this

root@hs2:/# hive
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/hive/lib/log4j-slf4j-impl-2.10.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.25.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]
12/26/21 22:15:26 INFO org.apache.hadoop.hive.conf.HiveConf: Found configuration file file:/opt/hive/conf/hive-site.xml
Hive Session ID = 0139cf93-2113-4a3f-9317-ea3f1d5dd7b2

Logging initialized using configuration in file:/opt/hive/conf/hive-log4j2.properties Async: true
12/26/21 22:15:28 INFO org.apache.hadoop.hive.ql.session.SessionState: Created HDFS directory: /tmp/hive/root/0139cf93-2113-4a3f-9317-ea3f1d5dd7b2
12/26/21 22:15:28 INFO org.apache.hadoop.hive.ql.session.SessionState: Created local directory: /tmp/root/0139cf93-2113-4a3f-9317-ea3f1d5dd7b2
12/26/21 22:15:28 INFO org.apache.hadoop.hive.ql.session.SessionState: Created HDFS directory: /tmp/hive/root/0139cf93-2113-4a3f-9317-ea3f1d5dd7b2/_tmp_space.db
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tez/dag/api/TezConfiguration
        at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:661)
        at org.apache.hadoop.hive.ql.session.SessionState.beginStart(SessionState.java:591)
        at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:747)
        at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:683)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.hadoop.util.RunJar.run(RunJar.java:318)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:232)
Caused by: java.lang.ClassNotFoundException: org.apache.tez.dag.api.TezConfiguration
        at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
        ... 10 more

It seems like there have some error for Tezconfiguration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant