[
https://issues.apache.org/jira/browse/HIVE-10502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14521970#comment-14521970
]
Szehon Ho commented on HIVE-10502:
----------------------------------
Thanks for the confirmation, Chaoyu. The first part is quite unfortunate,
seems it will affect all the hive scripts and lead to 'hadoop version' printing
out a debug message in a random log4j location (whatever it picks up).
So the second part, I tracked it down to HIVE-8772. [~thejas], the JIRA makes
it so that the log4j properties is hard-coded as 'beeline-log4j.properties' in
conf file, which I don't feel is well-known, at this point would it be valuable
to have it configurable by initializing Log4j in Beeline java code to have the
same user experience as other hive components (--hiveconf hive.log4j.file)?
> Cannot specify log4j.properties file location in Beeline
> --------------------------------------------------------
>
> Key: HIVE-10502
> URL: https://issues.apache.org/jira/browse/HIVE-10502
> Project: Hive
> Issue Type: Bug
> Components: Beeline
> Affects Versions: 1.1.0
> Reporter: Szehon Ho
> Assignee: Chaoyu Tang
>
> In HiveCLI, HiveServer2, HMS, etc, the following is called early in the
> startup to initialize log4j logging: LogUtils.initHiveLog4j().
> However, seems like this is not the case in Beeline, which also needs log4j
> like as follows:
> {noformat}
> at org.apache.log4j.LogManager.<clinit>(LogManager.java:127)
> at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:66)
> at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:270)
> at
> org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:156)
> at
> org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:132)
> at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:657)
> at org.apache.hadoop.util.VersionInfo.<clinit>(VersionInfo.java:37)
> {noformat}
> It would be good to specify it, so it doesn't pick the first one in the
> classpath.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)