gpt4 book ai didi

hadoop - Ambari HDP 2.4添加主机指标监视器无法安装

转载 作者:行者123 更新时间:2023-12-02 21:03:36 24 4
gpt4 key购买 nike

我试图将其他主机添加到运行HDP 2.4的Ambari群集中,并且Metrics Monitor似乎安装不正确,所有其他服务均正常运行。

下面是尝试在其中一台新主机上启动Metrics Monitor时获得的输出。

255. Building psutil...
Traceback (most recent call last):
File "setup.py", line 15, in <module>
from setuptools import setup, Extension
File "/usr/lib/python2.7/site-packages/setuptools/__init__.py", line 12, in <module>
import setuptools.version
File "/usr/lib/python2.7/site-packages/setuptools/version.py", line 1, in <module>
import pkg_resources
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 72, in <module>
import packaging.requirements
File "/usr/lib/python2.7/site-packages/packaging/requirements.py", line 59, in <module>
MARKER_EXPR = originalTextFor(MARKER_EXPR())("marker")
TypeError: __call__() takes exactly 2 arguments (1 given)
Verifying Python version compatibility...
Using python /usr/bin/python2.7
Checking for previously running Metric Monitor...
Starting ambari-metrics-monitor
Verifying ambari-metrics-monitor process status...
ERROR: ambari-metrics-monitor start failed. For more details, see /var/log/ambari-metrics-monitor/ambari-metrics-monitor.out:
====================
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/resource_monitoring/main.py", line 27, in <module>
from core.controller import Controller
File "/usr/lib/python2.6/site-packages/resource_monitoring/core/controller.py", line 28, in <module>
from metric_collector import MetricsCollector
File "/usr/lib/python2.6/site-packages/resource_monitoring/core/metric_collector.py", line 23, in <module>
from host_info import HostInfo
File "/usr/lib/python2.6/site-packages/resource_monitoring/core/host_info.py", line 22, in <module>
import psutil
ImportError: No module named psutil
====================
Monitor out at: /var/log/ambari-metrics-monitor/ambari-metrics-monitor.out

这是 /var/log/ambari-metrics-monitor/ambari-metrics-monitor.out的输出
psutil binaries need to be built by running, psutil/build.py manually or by running a, mvn clean package, command.
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/resource_monitoring/main.py", line 27, in <module>
from core.controller import Controller
File "/usr/lib/python2.6/site-packages/resource_monitoring/core/controller.py", line 28, in <module>
from metric_collector import MetricsCollector
File "/usr/lib/python2.6/site-packages/resource_monitoring/core/metric_collector.py", line 23, in <module>
from host_info import HostInfo
File "/usr/lib/python2.6/site-packages/resource_monitoring/core/host_info.py", line 22, in <module>
import psutil
ImportError: No module named psutil

我尝试进入该目录并运行 sudo python psutil/build.py以及运行 sudo make。两者都不起作用。

任何想法都很棒!

最佳答案

这是您的python环境的一个问题,它已经以某种方式损坏(最有可能使用sudo pip install <package>,将sudo和pip一起使用有时会导致此问题)。有关如何在SO question上解决此问题的详细信息。解决python问题后,您应该可以通过Ambari重试添加主机。

关于hadoop - Ambari HDP 2.4添加主机指标监视器无法安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42526438/

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