Support Questions
Find answers, ask questions, and share your expertise

ERROR Could not find value for key log4j.appender.RFA

Solved Go to solution

ERROR Could not find value for key log4j.appender.RFA

Contributor

I installed Cloudera Quickstart VM 5.13 on virtualbox and I'm trying to start hadoop server with the command sudo service hadoop-hdfs-namenode start

But i'm getting these two errors: 

log4j:ERROR Could not find value for key log4j.appender.RFA
log4j:ERROR Could not instantiate appender named "RFA"

 

This is the full output of the command:

 

[root@quickstart etc]# sudo service hadoop-hdfs-namenode start
starting namenode, logging to /var/log/hadoop-hdfs/hadoop-hdfs-namenode-quickstart.cloudera.out
log4j:ERROR Could not find value for key log4j.appender.RFA
log4j:ERROR Could not instantiate appender named "RFA".
log4j:WARN No appenders could be found for logger.(org.apache.hadoop.hdfs.server.namenode.NameNode).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Failed to start Hadoop namenode. Return value: 1 [FAILED]

 

Can anyone can help me with this issue?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: ERROR Could not find value for key log4j.appender.RFA

Contributor

I found my log4j.properties file (my case ./workspace/training/conf/log4j.properties) and i and added these two lines and it solved the problem :

log4j.appender.RFA=org.apache.log4j.ConsoleAppender log4j.appender.RFA.layout=org.apache.log4j.PatternLayout

View solution in original post

1 REPLY 1
Highlighted

Re: ERROR Could not find value for key log4j.appender.RFA

Contributor

I found my log4j.properties file (my case ./workspace/training/conf/log4j.properties) and i and added these two lines and it solved the problem :

log4j.appender.RFA=org.apache.log4j.ConsoleAppender log4j.appender.RFA.layout=org.apache.log4j.PatternLayout

View solution in original post