启动CDH,报错ERROR StatusLogger No log4j2 configuration file found. Using default configuration...ogging.
[root@node01 usr]# systemctl status cloudera-scm-server
● cloudera-scm-server.service - Cloudera CM Server Service
   Loaded: loaded (/usr/lib/systemd/system/cloudera-scm-server.service; enabled; vendor preset: disabled)
   Active: active (running) since 一 2020-03-16 12:03:03 CST; 3s ago
 Main PID: 10875 (java)
    Tasks: 17
   CGroup: /system.slice/cloudera-scm-server.service
           └─10875 /usr/java/jdk1.8.0_241/bin/java -cp .:/usr/share/java/mysql-connector-java.jar:/usr/share/java/oracle-connector-...

3月 16 12:03:04 node01 cm-server[10875]: at org.apache.log4j.PropertyConfigurator.parseCatsAndRenderers(PropertyConfigurato...va:639)
3月 16 12:03:04 node01 cm-server[10875]: at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:504)
3月 16 12:03:04 node01 cm-server[10875]: at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:547)
3月 16 12:03:04 node01 cm-server[10875]: at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:483)
3月 16 12:03:04 node01 cm-server[10875]: at org.apache.log4j.LogManager.<clinit>(LogManager.java:127)
3月 16 12:03:04 node01 cm-server[10875]: at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:73)
3月 16 12:03:04 node01 cm-server[10875]: at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:242)
3月 16 12:03:04 node01 cm-server[10875]: at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:254)
3月 16 12:03:04 node01 cm-server[10875]: at com.cloudera.server.cmf.Main.<clinit>(Main.java:173)
3月 16 12:03:05 node01 cm-server[10875]: ERROR StatusLogger No log4j2 configuration file found. Using default configuration...ogging.
Hint: Some lines were ellipsized, use -l to show in full.

1个回答

ERROR StatusLogger No log4j2 configuration file found. Using default configuration...ogging.

我在 /opt/cloudera/parcels/CDH/lib/oozie/libtools 下 加了一个空的log4j.xml 不报错了

运行结果:

[root@CDH01 csd]# systemctl status cloudera-scm-server
● cloudera-scm-server.service - Cloudera CM Server Service
Loaded: loaded (/usr/lib/systemd/system/cloudera-scm-server.service; enabled; vendor preset: disabled)
Active: active (running) since 五 2020-05-15 16:54:00 CST; 26min ago
Main PID: 189361 (java)
Tasks: 126
CGroup: /system.slice/cloudera-scm-server.service
└─189361 /usr/java/jdk1.8.0_11/bin/java -cp .:/usr/share/java/mysql-connector-java.jar:/usr/share/java/oracle-connector-java.jar:/usr/...

5月 15 16:54:00 CDH01 systemd[1]: Started Cloudera CM Server Service.
5月 15 16:54:00 CDH01 cm-server[189361]: JAVA_HOME=/usr/java/jdk1.8.0_11
5月 15 16:54:00 CDH01 cm-server[189361]: Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
[root@CDH01 csd]#

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问