我在virtualbox上安装了cloudera quickstart vm 5.13,并尝试用命令启动hadoop服务器 sudo service hadoop-hdfs-namenode start
但我有两个错误: log4j:ERROR Could not find value for key log4j.appender.RFA
以及 log4j:ERROR Could not instantiate appender named "RFA"
. 有人能帮我解决这个问题吗?
1条答案
按热度按时间35g0bw711#
我找到了log4j.properties文件(my case./workspace/training/conf/log4j.properties),添加了这两行代码,解决了问题:
log4j.appender.rfa=org.apache.log4j.consoleappender log4j.appender.rfa.layout=org.apache.log4j.patternlayout