cdh6.3安装hdfs报错

发布于 2022-09-12 03:14:02 字数 2384 浏览 39 评论 0

执行的命令

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

等风也等你 2022-09-19 03:14:02

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文