在 Cloudera 中设置集群时与服务器通信时出错

Error when Communicating with the server while Cluster Setup in Cloudera

我正尝试在 Centos-7 中使用 CLoudera 启动 Hadoop,但是在集群设置过程(单节点)中,我收到此错误说明:

There was an error when communicating with the server. See the log file for more information.

我使用

登录到 cloudera-scm-agent.log 文件
sudo cat /var/log/cloudera-scm-agent/cloudera-scm-agent.log

我看到目录创建失败和连接被拒绝错误。
可以找到详细的日志文件 here.

有人可以帮助我解决我在这里做错了什么吗?

你安装的集群是单用户模式的吗?如果是这样,系统用户 "cloudera-scm" 应该有权对服务日志、pid、数据目录执行读取、写入操作。从您的日志消息来看,由于文件系统权限不当,所有服务都被拒绝启动。

stacks', u'bytes_free_warning_threshhold_bytes': 0, u'group': u'cloudera-scm', u'user': u'cloudera-scm', u'mode': 493}]
[01/Nov/2018 04:41:11 +0000] 28095 MainThread os_ops       ERROR    Failed directory creation: /var/log/zookeeper/stacks: [Errno 13] Permission denied: '/var/log/zookeeper'
[01/Nov/2018 04:41:11 +0000] 28095 MainThread process      ERROR    Could not evaluate resource {u'path': u'/var/log/zookeeper/stacks', u'bytes_free_warning_threshhold_bytes': 0, u'group': u'cloudera-scm', u'user': u'cloudera-scm', u'mode': 493}
Traceback (most recent call last):
  File "/usr/lib64/cmf/agent/build/env/lib/python2.7/site-packages/cmf-5.15.1-py2.7.egg/cmf/process.py", line 963, in _do_directory_resources
    self.osops.mkabsdir(d["path"], user=d["user"], group=d["group"], mode=d["mode"])
  File "/usr/lib64/cmf/agent/build/env/lib/python2.7/site-packages/cmf-5.15.1-py2.7.egg/cmf/util/os_ops.py", line 180, in mkabsdir
    os.makedirs(path)
  File "/usr/lib64/cmf/agent/build/env/lib64/python2.7/os.py", line 150, in makedirs
    makedirs(head, mode)
  File "/usr/lib64/cmf/agent/build/env/lib64/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/var/log/zookeeper'