我正在尝试在Centos-7 usign CLoudera中启动Hadoop,但是在集群设置过程(单节点)中,出现此错误说明:
登录了与服务器通信时发生错误。有关更多信息,请参见日志文件。
cloudera-scm-agent.log
文件
sudo cat /var/log/cloudera-scm-agent/cloudera-scm-agent.log
我看到目录创建失败和连接被拒绝的错误。
可以在here中找到详细的日志文件。
有人可以协助我在这里做错什么吗?
答案 0 :(得分:0)
您是否以单用户模式安装了集群?如果是这样,系统用户“ 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'