Maybe there is another older log4j library in the classpath?

Le ven. 14 août 2015 à 5:34, Praveen Sripati <praveensrip...@gmail.com> a
écrit :

> Hi,
>
> I installed Java 1.8.0_51, Hadoop 1.2.1 and Hive 1.2.1 on Ubuntu 14.04 64
> bit, I do get the below exception when I start the hive shell or the
> beeline. How do I get around this problem?
>
> analysis@analysis-vm:~/Installations/apache-hive-1.2.1-bin$ bin/hive
> Exception in thread "main" java.lang.NoSuchMethodError:
> org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V
>     at
> org.apache.commons.logging.impl.SLF4JLocationAwareLog.warn(SLF4JLocationAwareLog.java:185)
>     at
> org.apache.hadoop.hive.common.LogUtils.logConfigLocation(LogUtils.java:145)
>     at
> org.apache.hadoop.hive.common.LogUtils.initHiveLog4jDefault(LogUtils.java:128)
>     at
> org.apache.hadoop.hive.common.LogUtils.initHiveLog4jCommon(LogUtils.java:77)
>     at
> org.apache.hadoop.hive.common.LogUtils.initHiveLog4j(LogUtils.java:58)
>     at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:637)
>     at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:621)
>     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:497)
>     at org.apache.hadoop.util.RunJar.main(RunJar.java:160)
>
> -----
>
> I copied the slf4j jar files to the hive lib folder and still get the same
> error.
>
> /home/analysis/Installations/apache-hive-1.2.1-bin/lib/slf4j-api-1.7.12.jar
>
> /home/analysis/Installations/apache-hive-1.2.1-bin/lib/slf4j-log4j12-1.7.12.jar
>
> -----
>
> Here is the environment I am executing.
>
> analysis@analysis-vm:~/Installations/apache-hive-1.2.1-bin$ echo
> $HADOOP_HOME
> /home/analysis/Installations/hadoop-1.2.1
>
> analysis@analysis-vm:~/Installations/apache-hive-1.2.1-bin$ echo
> $HIVE_HOME
> /home/analysis/Installations/apache-hive-1.2.1-bin
>
> analysis@analysis-vm:~/Installations/apache-hive-1.2.1-bin$ java -version
> java version "1.8.0_51"
> Java(TM) SE Runtime Environment (build 1.8.0_51-b16)
> Java HotSpot(TM) 64-Bit Server VM (build 25.51-b03, mixed mode)
>
> analysis@analysis-vm:~/Installations/apache-hive-1.2.1-bin$ uname -a
> Linux analysis-vm 3.19.0-25-generic #26~14.04.1-Ubuntu SMP Fri Jul 24
> 21:16:20 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
>
> Thanks,
> Praveen
>

Reply via email to