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

424 Views Asked by At

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 'm getting this two errors: log4j:ERROR Could not find value for key log4j.appender.RFA and log4j:ERROR Could not instantiate appender named "RFA". Can anyone can help me with this issue?

2

There are 2 best solutions below

0
On BEST ANSWER

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

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

0
On

For my case log4j.properties file is located at /etc/hadoop/conf/ Then add below configs as recommended

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