[
https://issues.apache.org/jira/browse/HIVE-3428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13448158#comment-13448158
]
Zhenxiao Luo commented on HIVE-3428:
------------------------------------
Problems in the current log4j configuration:
1. When hive is running MapReduce job using hadoop(which locates in
testutils/hadoop), hadoop is configured using HADOOP_CONF_DIR. While,
currently, HADOOP_CONF_DIR is not set properly(not set at all except for pdk
scripts).
2. hadoop is by default doing log4j initialization by reading log4j.properties
in its HADOOP_CONF_DIR. We do have a hive-log4j.properties, which is used to
initialize hive log4j, but no such log4j.properties exited for hadoop.
3. In the current hive-log4j.properties file, there is no
log4j.appender.NullAppender defined, which could produce the following log4j
error message:
[junit] < log4j:ERROR Could not find value for key log4j.appender.NullAppender
[junit] < log4j:ERROR Could not instantiate appender named "NullAppender".
4. The current log4j Event Counter Appender is initialized with an deprecated
value, which would produce the following warning message:
[junit] < WARNING: org.apache.hadoop.metrics.jvm.EventCounter is deprecated.
Please use org.apache.hadoop.log.metrics.EventCounter in all the
log4j.properties files.
> Fix log4j configuration errors when running hive on hadoop23
> ------------------------------------------------------------
>
> Key: HIVE-3428
> URL: https://issues.apache.org/jira/browse/HIVE-3428
> Project: Hive
> Issue Type: Bug
> Affects Versions: 0.10.0
> Reporter: Zhenxiao Luo
> Assignee: Zhenxiao Luo
>
> There are log4j configuration errors when running hive on hadoop23, some of
> them may fail testcases, since the following log4j error message could
> printed to console, or to output file, which diffs from the expected output:
> [junit] < log4j:ERROR Could not find value for key log4j.appender.NullAppender
> [junit] < log4j:ERROR Could not instantiate appender named "NullAppender".
> [junit] < 12/09/04 11:34:42 WARN conf.HiveConf: hive-site.xml not found on
> CLASSPATH
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira