Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Unable to initiate hive seeing error found multiple log4j jars with HDP2.3 Sandbox. I tried removing one jar but throws yarn config error. Any help is greatly appreciated.

Unable to initiate hive seeing error found multiple log4j jars with HDP2.3 Sandbox. I tried removing one jar but throws yarn config error. Any help is greatly appreciated.

New Contributor

unable to start hive seeing below error SLF4J:Class path contains multiple SLF4J bindings.

SLF4J:Found binding in [jar:file:/usr/local/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J:Found binding in [jar:file:/usr/local/hive/lib/slf4j-log4j12-1.6.1.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.slf4j.impl.Log4jLoggerFactory]
1 REPLY 1

Re: Unable to initiate hive seeing error found multiple log4j jars with HDP2.3 Sandbox. I tried removing one jar but throws yarn config error. Any help is greatly appreciated.

Super Mentor

@Vijay Kanth

Because hive will automatically use slf4j-log4j jar file present in hadoop libs hence you should remove the "slf4j-log4j" jar from hive libs"

rm -f /usr/local/hive/lib/slf4j-log4j12-1.6.1.jar       (OR Take a backup)

.

Please see a similar issue reported here: https://issues.apache.org/jira/browse/HIVE-6162 & https://issues.apache.org/jira/browse/HIVE-9496

.

This issue should not be observed in "HDP 2.3.4" and later release though. So looks like your HDP version is prior to "HDP 2.3.4". According to the JIRAs this issue has been fixed on Hive 1.2.0 or higher.

So you should try HDP 2.3.4 that has Hive 1.2.1.