<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Ambari Agent Start Failed in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Agent-Start-Failed/m-p/146552#M40341</link>
    <description>&lt;P&gt;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:&lt;/P&gt;&lt;PRE&gt;  File "/usr/lib/python2.6/site-packages/ambari_agent/HeartbeatHandlers.py", line 21, in &amp;lt;module&amp;gt;
    from ambari_commons.exceptions import FatalException 

ImportError: No module named ambari_commons.exceptions&lt;/PRE&gt;&lt;P&gt;Checked the logs and there are nothing else other than this above error.&lt;/P&gt;</description>
    <pubDate>Mon, 12 Sep 2016 09:20:26 GMT</pubDate>
    <dc:creator>weiqiangli</dc:creator>
    <dc:date>2016-09-12T09:20:26Z</dc:date>
    <item>
      <title>Ambari Agent Start Failed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Agent-Start-Failed/m-p/146550#M40339</link>
      <description>&lt;P&gt;Environmennt: CentOS7&lt;/P&gt;&lt;P&gt;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. &lt;/P&gt;&lt;P&gt;However, when I ran "ambari-agent start", it showed the following error:&lt;/P&gt;&lt;PRE&gt;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 &amp;lt;module&amp;gt;  from Controller import AGENT_AUTO_RESTART_EXIT_CODE  
   File "/usr/lib/python2.6/site-packages/ambari_agent/Controller.py", line 41, in &amp;lt;module&amp;gt;  from ambari_agent.ActionQueue import ActionQueue  
   File "/usr/lib/python2.6/site-packages/ambari_agent/ActionQueue.py", line 37, in &amp;lt;module&amp;gt;  from ambari_commons.str_utils import split_on_chunks
ImportError: cannot import name split_on_chunks
====================&lt;/PRE&gt;&lt;P&gt;The /var/log/ambari-agent/ambari-agent.out shows the same error above.&lt;/P&gt;&lt;P&gt;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".&lt;/P&gt;&lt;P&gt;How to resolve this problem?&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2016 08:24:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Agent-Start-Failed/m-p/146550#M40339</guid>
      <dc:creator>weiqiangli</dc:creator>
      <dc:date>2016-09-12T08:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Agent Start Failed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Agent-Start-Failed/m-p/146551#M40340</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/12318/weiqiangli.html" nodeid="12318"&gt;@William Li&lt;/A&gt; do the following, review the errors in /var/log/ambari-agent then if nothing is obvious go with next steps below&lt;/P&gt;&lt;PRE&gt;yum erase ambari-agent

rm -rf /var/lib/ambari-agent
rm -rf /var/log/ambari-agent
rm -rf /usr/lib/python2.6/site-packages/ambari_agent
yum install -y ambari-agent&lt;/PRE&gt;&lt;P&gt;there may be other residual directories to remove but once you clean all, reinstall  and try again. &lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2016 08:33:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Agent-Start-Failed/m-p/146551#M40340</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-09-12T08:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Agent Start Failed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Agent-Start-Failed/m-p/146552#M40341</link>
      <description>&lt;P&gt;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:&lt;/P&gt;&lt;PRE&gt;  File "/usr/lib/python2.6/site-packages/ambari_agent/HeartbeatHandlers.py", line 21, in &amp;lt;module&amp;gt;
    from ambari_commons.exceptions import FatalException 

ImportError: No module named ambari_commons.exceptions&lt;/PRE&gt;&lt;P&gt;Checked the logs and there are nothing else other than this above error.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2016 09:20:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Agent-Start-Failed/m-p/146552#M40341</guid>
      <dc:creator>weiqiangli</dc:creator>
      <dc:date>2016-09-12T09:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Agent Start Failed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Agent-Start-Failed/m-p/146553#M40342</link>
      <description>&lt;P&gt;I did one more thing to &lt;/P&gt;&lt;PRE&gt;rm -rf /usr/lib/python2.6/site-packages

yum remove ambari-agent
yum install ambari-agent -y &lt;/PRE&gt;&lt;P&gt;It worked. The ambari-agent start completed successfully.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2016 11:02:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Agent-Start-Failed/m-p/146553#M40342</guid>
      <dc:creator>weiqiangli</dc:creator>
      <dc:date>2016-09-12T11:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Agent Start Failed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Agent-Start-Failed/m-p/146554#M40343</link>
      <description>&lt;P&gt;Please see my comment below to remove the entire site-packages. After that, it worked!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2016 11:03:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Agent-Start-Failed/m-p/146554#M40343</guid>
      <dc:creator>weiqiangli</dc:creator>
      <dc:date>2016-09-12T11:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Agent Start Failed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Agent-Start-Failed/m-p/146555#M40344</link>
      <description>&lt;P&gt;Great job!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2016 18:37:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Agent-Start-Failed/m-p/146555#M40344</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-09-12T18:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Agent Start Failed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Agent-Start-Failed/m-p/146556#M40345</link>
      <description>&lt;P&gt;You should not do "rm -rf /usr/lib/python2.6/site-packages" as this affects to other python scripts, such as "yum"&lt;/P&gt;&lt;P&gt;This issue would be caused if you install ambari-server or /usr/lib/python2.6/site-packages/ambari_commons/str_utils.py is not a right one.&lt;/P&gt;&lt;P&gt;Please make sure "/usr/lib/python2.6/site-packages/ambari_commons" is a symlink to /usr/lib/ambari-agent/lib/ambari_commons&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2016 06:31:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Agent-Start-Failed/m-p/146556#M40345</guid>
      <dc:creator>hosako</dc:creator>
      <dc:date>2016-09-23T06:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Agent Start Failed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Agent-Start-Failed/m-p/146557#M40346</link>
      <description>&lt;P&gt;I had same problem on other than master nodes, you have to update ambari-server on each node even if you are not running server on each one.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 16:49:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Agent-Start-Failed/m-p/146557#M40346</guid>
      <dc:creator>c-a-l-e-b</dc:creator>
      <dc:date>2017-02-22T16:49:51Z</dc:date>
    </item>
  </channel>
</rss>

