作者:帖帧 | 来源:互联网 | 2023-05-18 06:49
Imtryingtosetupa6nodeHDP2.2clusterusingAmbari1.7.0.Afterahack(byaddingexportPYT
I'm trying to setup a 6 node HDP 2.2 cluster using Ambari 1.7.0. After a hack (by adding 'export PYTHON=/usr/bin/python2.6' to ambari-agent/ambari-enh) to get the ambari-agent daemon running on the agent nodes, I'm able to register target hosts.
我正在尝试使用Ambari 1.7.0来设置一个6节点HDP 2.2集群。在一个hack(通过添加“export PYTHON=/usr/bin/python2.6”到ambari-agent/ambari-enh)来获得在代理节点上运行的ambariagent守护进程,我就能够注册目标主机。
However, I encounter a horrible problem during the 'Deploy' step. It seems that although I've selected the HDP 2.2 stack, HDP 2.0.6 is still selected.
然而,在“部署”步骤中,我遇到了一个可怕的问题。虽然我已经选择了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
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
from resource_management.libraries.functions.dfs_datanode_helper import handle_dfs_data_dir
ImportError: No module named dfs_datanode_helper
And the ambari-agent.log contains the following:
和ambari-agent。日志包含以下:
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}
Question: Why is HDP 2.0.6 being installed even if I've selected HDP 2.2?
问:为什么HDP 2.0.6被安装,即使我选择了HDP 2.2?
My environment info: CentOS 6.6, HortonWorks Ambari 1.7.0, HDP-2.2, HDP-UTILS-1.1
我的环境信息:CentOS 6.6, HortonWorks Ambari 1.7.0, HDP-2.2, HDP-UTILS-1.1。
Repos: HDP-2.2 HDP-UTILS-1.1.0.20 Updates-ambari-1.7.0 ambari-1.x
Repos: HDP-2.2 HDP-UTILS-1.1.0.20更新-ambari-1.7.0 ambari-1.x。
1 个解决方案