[ 
https://issues.apache.org/jira/browse/IMPALA-14299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18013713#comment-18013713
 ] 

ASF subversion and git services commented on IMPALA-14299:
----------------------------------------------------------

Commit 810ade281969faf83151bc9ee2fc117ae3cb1551 in impala's branch 
refs/heads/master from zhangyifan27
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=810ade281 ]

IMPALA-14299: Remove EventCounter configurations from log4j.properties.tmpl

EventCouter has been removed in HADOOP-17254, log4j configuration should
alse be updated to avoid errors.

With this patch, a HDFS cluster could be started up with no errors after
running `./bin/create-test-configurations.sh`.

Change-Id: Id092ed7c9d1e3929daf36d05e0305d1d27de8207
Reviewed-on: http://gerrit.cloudera.org:8080/23287
Reviewed-by: Impala Public Jenkins <[email protected]>
Tested-by: Michael Smith <[email protected]>


> Failed to start hdfs namenode with USE_APACHE_COMPONENT=true
> ------------------------------------------------------------
>
>                 Key: IMPALA-14299
>                 URL: https://issues.apache.org/jira/browse/IMPALA-14299
>             Project: IMPALA
>          Issue Type: Bug
>            Reporter: YifanZhang
>            Assignee: YifanZhang
>            Priority: Major
>
> I got this error message when running `./testdata/bin/run-mini-dfs.sh`:
> {code:java}
> Failed to start hdfs-namenode. The end of the log 
> (/data/home/impala/apache-impala/testdata/cluster/cdh7/node-1/var/log/hdfs-namenode.out)
>  is:
>         at org.apache.log4j.helpers.Loader.loadClass(Loader.java:190)
>         at 
> org.apache.log4j.helpers.OptionConverter.instantiateByClassName(OptionConverter.java:304)
>         at 
> org.apache.log4j.helpers.OptionConverter.instantiateByKey(OptionConverter.java:123)
>         at 
> org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:755)
>         at 
> org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:738)
>         at 
> org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:630)
>         at 
> org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:516)
>         at 
> org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:577)
>         at 
> org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:504)
>         at org.apache.log4j.LogManager.<clinit>(LogManager.java:119)
>         at 
> org.slf4j.impl.Reload4jLoggerFactory.<init>(Reload4jLoggerFactory.java:67)
>         at 
> org.slf4j.impl.StaticLoggerBinder.<init>(StaticLoggerBinder.java:72)
>         at 
> org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:45)
>         at org.slf4j.LoggerFactory.bind(LoggerFactory.java:150)
>         at 
> org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:124)
>         at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:417)
>         at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:362)
>         at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:388)
>         at 
> org.apache.hadoop.conf.ReconfigurableBase.<clinit>(ReconfigurableBase.java:46)
> log4j:ERROR Could not instantiate appender named "EventCounter". {code}
> I also found that EventCounter is not in hadoop-common-*.jar by running:
> {code:java}
> jar tf $HADOOP_HOME/share/hadoop/common/hadoop-common-*.jar | grep 
> EventCounter {code}
> It turns out that HADOOP-17524 has removed EventCounter. Since the default 
> version for Apache Hadoop has been updated to 3.4.1 in IMPALA-13753, 
> log4j.properties files should also be updated to start HDFS cluster with 
> newer versions.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to