Member since
08-05-2016
8
Posts
1
Kudos Received
1
Solution
My Accepted Solutions
Title | Views | Posted |
---|---|---|
2827 | 09-12-2016 04:02 AM |
09-12-2016
04:03 AM
Please see my comment below to remove the entire site-packages. After that, it worked!
... View more
09-12-2016
04:02 AM
I did one more thing to rm -rf /usr/lib/python2.6/site-packages
yum remove ambari-agent
yum install ambari-agent -y It worked. The ambari-agent start completed successfully.
... View more
09-12-2016
03:57 AM
1 Kudo
I ran into similar issue and did what Miraj said, it works!
... View more
09-12-2016
02:20 AM
Thanks a lot Artem for the quick response. Tried your steps and still has the exact error above. However, this time it has one extract line of error message: File "/usr/lib/python2.6/site-packages/ambari_agent/HeartbeatHandlers.py", line 21, in <module>
from ambari_commons.exceptions import FatalException
ImportError: No module named ambari_commons.exceptions Checked the logs and there are nothing else other than this above error.
... View more
09-12-2016
01:24 AM
Environmennt: CentOS7 I manually installed the ambari-agent older version (2.2.2.0) and found out it's the wrong version I needed. Then I ran yum to remove it. I updated the repo so I now downloaded and installed the correct version 2.4.0.1. However, when I ran "ambari-agent start", it showed the following error: Verifying Python version compatibility...
Using python /usr/bin/pythonChecking for previously running Ambari Agent...
Starting ambari-agentVerifying ambari-agent process status...
ERROR: ambari-agent start failed. For more details, see /var/log/ambari-agent/ambari-agent.out:
====================
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/ambari_agent/AmbariAgent.py", line 24, in <module> from Controller import AGENT_AUTO_RESTART_EXIT_CODE
File "/usr/lib/python2.6/site-packages/ambari_agent/Controller.py", line 41, in <module> from ambari_agent.ActionQueue import ActionQueue
File "/usr/lib/python2.6/site-packages/ambari_agent/ActionQueue.py", line 37, in <module> from ambari_commons.str_utils import split_on_chunks
ImportError: cannot import name split_on_chunks
==================== The /var/log/ambari-agent/ambari-agent.out shows the same error above. Seems that I can't cleanly remove the dependencies that installed with the previous version. Even when I tried ambari-agent reset, the same error happened and said "ImportError: cannot import name split on chunks". How to resolve this problem? Many thanks!
... View more
Labels:
- Labels:
-
Apache Ambari