Re: No module named ambari_simplejson

2018-03-22 Thread xiang . dai
Oops, after reboot, it works.

- Original Message -
From: "Robert Levas" 
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@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  
from Controller import AGENT_AUTO_RESTART_EXIT_CODE 
File "/usr/lib/python2.6/site-packages/ambari_agent/Controller.py", line 
23, in  
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

2018-03-22 Thread Robert Levas
Check to see if /usr/lib/ambari-agent/lib is in your PYTHONPATH. 


On 3/22/18, 7:17 AM, "xiang@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  
from Controller import AGENT_AUTO_RESTART_EXIT_CODE 
File "/usr/lib/python2.6/site-packages/ambari_agent/Controller.py", line 
23, in  
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? 




No module named ambari_simplejson

2018-03-22 Thread xiang . dai
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  
from Controller import AGENT_AUTO_RESTART_EXIT_CODE 
File "/usr/lib/python2.6/site-packages/ambari_agent/Controller.py", line 23, in 
 
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?