[
https://issues.apache.org/jira/browse/AMBARI-9510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16094406#comment-16094406
]
kai zhao commented on AMBARI-9510:
----------------------------------
[~dsen]
I hava remove the directory
/usr/lib/python2.6/site-packages/resource_monitoring/psutil/build
But i still got this error
And i try to build manually by execute [python build.py] , got the log from
bulid.out file.
{noformat}
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector-strong --param=ssp-buffer-size=4
-grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG
-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64
-mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c
psutil/_psutil_linux.c -o build/temp.linux-x86_64-2.7/psutil/_psutil_linux.o
gcc -pthread -shared -Wl,-z,relro
build/temp.linux-x86_64-2.7/psutil/_psutil_linux.o -L/usr/lib64 -lpython2.7 -o
build/lib.linux-x86_64-2.7/_psutil_linux.so
collect2: fatal error: cannot find 'ld'
compilation terminated.
error: command 'gcc' failed with exit status 1
make: *** [build] Error 1
{noformat}
{color:red}plus:
At directory "/usr/lib"
I got two version of python directory
python2.6 and python2.7 ,does this might be the cause? {color}
Thanks a lot..
> Metric Monitor can not be started
> ---------------------------------
>
> Key: AMBARI-9510
> URL: https://issues.apache.org/jira/browse/AMBARI-9510
> Project: Ambari
> Issue Type: Bug
> Components: ambari-metrics, ambari-server
> Affects Versions: 2.0.0
> Reporter: Dmytro Sen
> Assignee: Dmytro Sen
> Priority: Blocker
> Fix For: 2.0.0
>
> Attachments: AMBARI-9510.patch
>
>
> After deploying Metric Monitor can not be started.
> /var/log/ambari-metrics-monitor/ambari-metrics-monitor.out contains:
> psutil binaries need to be built by running, psutil/build.py manually or by
> running a, mvn clean package, command.
> {noformat}
> 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
> File
> "/usr/lib/python2.6/site-packages/resource_monitoring/psutil/build/lib.linux-x86_64-2.6/psutil/__init__.py",
> line 89, in <module>
> import psutil._pslinux as _psplatform
> File
> "/usr/lib/python2.6/site-packages/resource_monitoring/psutil/build/lib.linux-x86_64-2.6/psutil/_pslinux.py",
> line 20, in <module>
> from psutil import _common
> ImportError: cannot import name _common
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)