dengzhhu653 commented on PR #4680: URL: https://github.com/apache/hive/pull/4680#issuecomment-1750266579
> I am still getting > > ``` > + : derby > + SKIP_SCHEMA_INIT=false > + export HIVE_CONF_DIR=/opt/hive/conf > + HIVE_CONF_DIR=/opt/hive/conf > + '[' -d '' ']' > + export 'HADOOP_CLIENT_OPTS= -Xmx1G ' > + HADOOP_CLIENT_OPTS=' -Xmx1G ' > + [[ false == \f\a\l\s\e ]] > + initialize_hive > + COMMAND=-initOrUpgradeSchema > ++ echo 3.1.3 > ++ cut -d . -f1 > + '[' 3 -lt 4 ']' > + COMMAND=-upgradeSchema > + /opt/hive/bin/schematool -dbType derby -upgradeSchema > SLF4J: Class path contains multiple SLF4J bindings. > SLF4J: Found binding in [jar:file:/opt/hive/lib/log4j-slf4j-impl-2.17.1.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] > Exception in thread "main" java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;Ljava/lang/Object;)V > at org.apache.hadoop.conf.Configuration.set(Configuration.java:1357) > at org.apache.hadoop.conf.Configuration.set(Configuration.java:1338) > at org.apache.hadoop.mapred.JobConf.setJar(JobConf.java:518) > at org.apache.hadoop.mapred.JobConf.setJarByClass(JobConf.java:536) > at org.apache.hadoop.mapred.JobConf.<init>(JobConf.java:430) > at org.apache.hadoop.hive.conf.HiveConf.initialize(HiveConf.java:5144) > at org.apache.hadoop.hive.conf.HiveConf.<init>(HiveConf.java:5107) > at org.apache.hive.beeline.HiveSchemaTool.<init>(HiveSchemaTool.java:96) > at org.apache.hive.beeline.HiveSchemaTool.main(HiveSchemaTool.java:1473) > 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) > + '[' 1 -eq 0 ']' > + echo 'Schema initialization failed!' > ``` > > When running > > ``` > docker run -d -p 10000:10000 -p 10002:10002 --env SERVICE_NAME=hiveserver2 --env SCHEMA_COMMAND= upgradeSchema --name hive3 apache/hive:3.1.3 > ``` > > Are there any other settings / gotchas needed to run hive:3.1.3 in docker? I guess there are different versions of guava in HMS classpath, what's the Hadoop version of the Docker? the default hadoop version in Hive 3.1.3 is 3.1.0. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
