gpt4 book ai didi

hadoop - 通过 Ambari 安装 DataNode

转载 作者:行者123 更新时间:2023-12-02 20:43:18 26 4
gpt4 key购买 nike

我有

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/
在文件夹中新建文件,例如 /sbin/hadoop-daemon.sh 没有出现。

如何再次通过 Ambari 部署组件 DataNode?

最佳答案

我猜这个问题是由 /usr/hdp 的错误符号链接(symbolic link)引起的.您甚至可以尝试手动修复它们,结构很简单。在简单的堆栈部署之后,通过这个问题听起来不像是一个常见的问题。

您是否使用非 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

此外,在 https://community.hortonworks.com/ 此处提出与 Ambari 相关的问题可能会更有成效。

关于hadoop - 通过 Ambari 安装 DataNode,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49015235/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com