• 2
  • 新人请关照

cdh6.3安装hdfs报错

执行的命令

hdfs/hdfs.sh ["secondarynamenode"]
 

Sun Jun 14 07:49:04 CST 2020
JAVA_HOME=/usr/java/jdk1.8.0_181
using /usr/java/jdk1.8.0_181 as JAVA_HOME
using 6 as CDH_VERSION
using /var/run/cloudera-scm-agent/process/45-hdfs-SECONDARYNAMENODE as CONF_DIR
using as SECURE_USER
using as SECURE_GROUP
CONF_DIR=/var/run/cloudera-scm-agent/process/45-hdfs-SECONDARYNAMENODE
CMF_CONF_DIR=
unlimited

错误为

Caused by: java.lang.IllegalArgumentException: Problem with rules file {{CMF_CONF_DIR}}/redaction-rules.json
    at org.cloudera.log4j.redactor.RedactorPolicy.activateOptions(RedactorPolicy.java:55)
    at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)
    at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:172)
    at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:149)
    at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:104)
    at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:842)
    at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:768)
    at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:648)
    at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:514)
    at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:580)
    at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526)
    at org.apache.log4j.LogManager.<clinit>(LogManager.java:127)
    ... 10 more
Caused by: java.io.FileNotFoundException: {{CMF_CONF_DIR}}/redaction-rules.json (No such file or directory)
    at java.io.FileInputStream.open0(Native Method)
    at java.io.FileInputStream.open(FileInputStream.java:195)
    at java.io.FileInputStream.<init>(FileInputStream.java:138)
    at com.fasterxml.jackson.core.JsonFactory.createParser(JsonFactory.java:766)
    at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2903)
    at org.cloudera.log4j.redactor.StringRedactor.createFromJsonFile(StringRedactor.java:248)
    at org.cloudera.log4j.redactor.RedactorPolicy.activateOptions(RedactorPolicy.java:52)
    ... 21 more

12121.png

阅读 620
评论
    1 个回答
    • 2
    • 新人请关照

    哪位帮忙解答,我送瑞星咖啡优惠券一张

      撰写回答

      登录后参与交流、获取后续更新提醒

      相似问题
      推荐文章