gpt4 book ai didi

python - HortonWorks Ambari 1.7.0 选择了错误的 HDP 堆栈

转载 作者:行者123 更新时间:2023-12-02 21:41:39 35 4
gpt4 key购买 nike

我正在尝试使用 Ambari 1.7.0 设置一个 6 节点 HDP 2.2 集群。在 hack 之后(通过将 'export PYTHON=/usr/bin/python2.6' 添加到 ambari-agent/ambari-enh)让 ambari-agent 守护程序在代理节点上运行,我能够注册目标主机。

但是,我在“部署”步骤中遇到了一个可怕的问题。似乎虽然我选择了 HDP 2.2 堆栈,但仍然选择了 HDP 2.0.6。

Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/HDFS/package/scripts/datanode.py", line 21, in <module>
from hdfs_datanode import datanode
File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/HDFS/package/scripts/hdfs_datanode.py", line 21, in <module>
from resource_management.libraries.functions.dfs_datanode_helper import handle_dfs_data_dir
ImportError: No module named dfs_datanode_helper

ambari-agent.log 包含以下内容:
INFO 2015-02-06 00:11:47,707 PythonExecutor.py:118 - Result: 
{'structuredOut': {},
'stdout': '2015-02-06 00:11:47,687 - Error while executing command
\'status\':\nTraceback (most recent call last):\n
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 123, in execute\n File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/GANGLIA/package/scripts/ganglia_monitor.py",
line 63, in status\n
raise ComponentIsNotRunning()\nComponentIsNotRunning',
'stderr': '2015-02-06 00:11:47,687 - Error while executing command
\'status\':\nTraceback (most recent call last):\n
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 123, in execute\n File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/GANGLIA/package/scripts/ganglia_monitor.py", line 63, in status\n
raise ComponentIsNotRunning()\nComponentIsNotRunning', 'exitcode': 1}

问:为什么我选择了 HDP 2.2 还是安装了 HDP 2.0.6?

我的环境信息:
CentOS 6.6、HortonWorks Ambari 1.7.0、HDP-2.2、HDP-UTILS-1.1

repo :
HDP-2.2 HDP-UTILS-1.1.0.20 更新-ambari-1.7.0 ambari-1.x

最佳答案

这是预期的行为。 Ambari Stacks 可以继承以前的版本。因此,在您的情况下,对于 Stack 2.2,HDFS 继承自 Stack 2.1 版,后者也继承自 2.0.6 版。

这是在这里定义的:https://github.com/apache/ambari/blob/release-1.7.0/ambari-server/src/main/resources/stacks/HDP/2.2/metainfo.xml

现在,回到真正的问题,Ganglia 根本没有运行。您看到的错误是在 Ganglia 服务的状态检查中引发的。我会从那里开始。

关于python - HortonWorks Ambari 1.7.0 选择了错误的 HDP 堆栈,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28358305/

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