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

"No Configuration was provided" from log4j, beeline, HDP 2.5


"No Configuration was provided" from log4j, beeline, HDP 2.5


I have a Hive storage handler which uses log4j. It was working on HDP 2.3 but on HDP 2.5 when I run my storage handler queries on beeline I get the following:

Caused by: java.lang.NullPointerException: No Configuration was provided

at java.util.Objects.requireNonNull( at org.apache.logging.log4j.core.LoggerContext.setConfiguration( at org.apache.logging.log4j.core.LoggerContext.reconfigure( at org.apache.logging.log4j.core.LoggerContext.reconfigure( at org.apache.logging.log4j.core.LoggerContext.start( at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext( at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext( at org.apache.logging.log4j.LogManager.getContext( at org.apache.logging.log4j.LogManager.getLogger(

This only happens on beeline -- if I run the queries on Hive CLI they work fine.

Any insights on why would be appreciated, thanks.


Re: "No Configuration was provided" from log4j, beeline, HDP 2.5


Compare the classpath entries for missing jars or configs between beeline and Hive shell.

Don't have an account?
Coming from Hortonworks? Activate your account here