由Ambari安装DataNode

问题描述 投票:0回答:1

我有

OS Red Hat Enterprise Linux Server release 7.4 (Maipo)
Ambari Version 2.5.1.0
HDP 2.6

完成部署后,2个数据节点无法启动。尝试开始返回错误:

  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 303, in _call
    raise ExecutionFailed(err_msg, code, out, err)
resource_management.core.exceptions.ExecutionFailed: Execution of 'ambari-sudo.sh su hdfs -l -s /bin/bash -c 'ulimit -c unlimited ;  /usr/hdp/current/hadoop-client/sbin/hadoop-daemon.sh --config /usr/hdp/current/hadoop-client/conf start datanode'' returned 127. -bash: /usr/hdp/current/hadoop-client/sbin/hadoop-daemon.sh: No such file or directory

我试图删除组件并由Ambari进行新安装。

安装完成且没有错误

2018-02-27 20:47:31,550 - Execute['ambari-sudo.sh /usr/bin/hdp-select set all `ambari-python-wrap /usr/bin/hdp-select versions | grep ^2.6 | tail -1`'] {'only_if': 'ls -d /usr/hdp/2.6*'}
2018-02-27 20:47:31,554 - Skipping Execute['ambari-sudo.sh /usr/bin/hdp-select set all `ambari-python-wrap /usr/bin/hdp-select versions | grep ^2.6 | tail -1`'] due to only_if
2018-02-27 20:47:31,554 - FS Type: 
2018-02-27 20:47:31,554 - XmlConfig['core-site.xml'] {'group': 'hadoop', 'conf_dir': '/usr/hdp/current/hadoop-client/conf', 'configuration_attributes': {u'final': {u'fs.defaultFS': u'true'}}, 'owner': 'hdfs', 'only_if': 'ls /usr/hdp/current/hadoop-client/conf', 'configurations': ...}
2018-02-27 20:47:31,568 - Generating config: /usr/hdp/current/hadoop-client/conf/core-site.xml
2018-02-27 20:47:31,569 - File['/usr/hdp/current/hadoop-client/conf/core-site.xml'] {'owner': 'hdfs', 'content': InlineTemplate(...), 'group': 'hadoop', 'mode': None, 'encoding': 'UTF-8'}
2018-02-27 20:47:31,583 - Could not load 'version' from /var/lib/ambari-agent/data/structured-out-3374.json

Command completed successfully!

但是新的开始再次显示错误。我检查了文件夹/ usr / hdp / current / hadoop-client / In文件夹中的新文件,例如/sbin/hadoop-daemon.sh没有出现。

如何再次使用Ambari部署组件DataNode?

hadoop bigdata ambari
1个回答
0
投票

我猜这个问题是由/usr/hdp错误的符号链接造成的。您甚至可以尝试手动修复它们,结构非常简单。在普通堆栈部署之后,通过该问题听起来并不像普通的那样。

您是否使用非root /自定义用户运行Ambari?也许Ambari没有足够的权限?见https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.0.0/bk_ambari-security/content/how_to_configure_ambari_server_for_non-root.html

Ambari版本2.5.1.0已经过时了,因此更新Ambari并查看它是否有帮助是有意义的。此外,如果你想熄灭一切,请参阅https://github.com/hortonworks/HDP-Public-Utilities/blob/master/Installation/cleanup_script.sh

此外,在这里询问与Ambari相关的问题可能更有成效https://community.hortonworks.com/

© www.soinside.com 2019 - 2024. All rights reserved.