You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by xi...@sky-data.cn on 2018/03/22 11:16:30 UTC
No module named ambari_simplejson
Hi!
I do some changes and rebuild a ambari-agent rpm pkg, but start failed.
Here is the log:
+ nohup /usr/bin/python /usr/lib/python2.6/site-packages/ambari_agent/AmbariAgent.py start
Killed
[root@dx-storage-1 etc]# /usr/bin/python /usr/lib/python2.6/site-packages/ambari_agent/AmbariAgent.py start
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/ambari_agent/AmbariAgent.py", line 25, in <module>
from Controller import AGENT_AUTO_RESTART_EXIT_CODE
File "/usr/lib/python2.6/site-packages/ambari_agent/Controller.py", line 23, in <module>
import ambari_simplejson as json
ImportError: No module named ambari_simplejson
I am sure that i never change ambari_simplejson or other python pkgs, could someone help me?
Re: No module named ambari_simplejson
Posted by xi...@sky-data.cn.
Oops, after reboot, it works.
----- Original Message -----
From: "Robert Levas" <rl...@hortonworks.com>
To: dev@ambari.apache.org
Sent: Thursday, March 22, 2018 7:35:49 PM
Subject: Re: No module named ambari_simplejson
Check to see if /usr/lib/ambari-agent/lib is in your PYTHONPATH.
On 3/22/18, 7:17 AM, "xiang.dai@sky-data.cn" <xi...@sky-data.cn> wrote:
Hi!
I do some changes and rebuild a ambari-agent rpm pkg, but start failed.
Here is the log:
+ nohup /usr/bin/python /usr/lib/python2.6/site-packages/ambari_agent/AmbariAgent.py start
Killed
[root@dx-storage-1 etc]# /usr/bin/python /usr/lib/python2.6/site-packages/ambari_agent/AmbariAgent.py start
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/ambari_agent/AmbariAgent.py", line 25, in <module>
from Controller import AGENT_AUTO_RESTART_EXIT_CODE
File "/usr/lib/python2.6/site-packages/ambari_agent/Controller.py", line 23, in <module>
import ambari_simplejson as json
ImportError: No module named ambari_simplejson
I am sure that i never change ambari_simplejson or other python pkgs, could someone help me?
Re: No module named ambari_simplejson
Posted by Robert Levas <rl...@hortonworks.com>.
Check to see if /usr/lib/ambari-agent/lib is in your PYTHONPATH.
On 3/22/18, 7:17 AM, "xiang.dai@sky-data.cn" <xi...@sky-data.cn> wrote:
Hi!
I do some changes and rebuild a ambari-agent rpm pkg, but start failed.
Here is the log:
+ nohup /usr/bin/python /usr/lib/python2.6/site-packages/ambari_agent/AmbariAgent.py start
Killed
[root@dx-storage-1 etc]# /usr/bin/python /usr/lib/python2.6/site-packages/ambari_agent/AmbariAgent.py start
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/ambari_agent/AmbariAgent.py", line 25, in <module>
from Controller import AGENT_AUTO_RESTART_EXIT_CODE
File "/usr/lib/python2.6/site-packages/ambari_agent/Controller.py", line 23, in <module>
import ambari_simplejson as json
ImportError: No module named ambari_simplejson
I am sure that i never change ambari_simplejson or other python pkgs, could someone help me?