我正在尝试使用 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
回购:HDP-2.2 HDP-UTILS-1.1.0.20 更新-ambari-1.7.0 ambari-1.x