<?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 error when restarting flume agent in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-error-when-restarting-flume-agent/m-p/139386#M19349</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/2583/kelsukov.html" nodeid="2583"&gt;@Kirill Elsukov&lt;/A&gt;&lt;P&gt;That's what I shared in my initial reply &lt;/P&gt;&lt;P&gt;"I hate to say this ..You have to uninstall ambari-agent and reinstall...I have see this behavior few times and after lot of troubleshooting...I fixed it by following the above approach&lt;/P&gt;&lt;P&gt;ambari-agent stop&lt;/P&gt;&lt;P&gt;yum remove ambari-agent&lt;/P&gt;&lt;P&gt;yum install ambari-agent&lt;/P&gt;&lt;P&gt;ambar-agent start"&lt;/P&gt;&lt;P&gt;ambari-agent stop&lt;/P&gt;&lt;P&gt;ambari-agent start &lt;/P&gt;&lt;P&gt;If it does not work then do this&lt;/P&gt;&lt;P&gt;root@phdns02 ~]# &lt;STRONG&gt;netstat -anp | grep 8670&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;tcp        0      0 0.0.0.0:8670                0.0.0.0:*                   LISTEN      &lt;STRONG&gt;446256&lt;/STRONG&gt;/python2      &lt;/P&gt;&lt;P&gt;[root@phdns02 ~]# ps -ef | grep 446256&lt;/P&gt;&lt;P&gt;root     175471 170130  0 06:28 pts/1    00:00:00 grep 446256&lt;/P&gt;&lt;P&gt;root     446256 446248  2 Feb14 ?        03:10:42 /usr/bin/python2 /usr/lib/python2.6/site-packages/ambari_agent/main.py start --expected-hostname=phdns02.cloud.hortonworks.com&lt;/P&gt;&lt;P&gt;kill -9 pid&lt;/P&gt;</description>
    <pubDate>Sat, 20 Feb 2016 22:28:46 GMT</pubDate>
    <dc:creator>nsabharwal</dc:creator>
    <dc:date>2016-02-20T22:28:46Z</dc:date>
    <item>
      <title>Ambari error when restarting flume agent</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-error-when-restarting-flume-agent/m-p/139381#M19344</link>
      <description>&lt;P&gt;I have an error when restarting flume agent on one of two HDP nodes:&lt;/P&gt;&lt;PRE&gt;Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-RESTART/scripts/hook.py", line 20, in &amp;lt;module&amp;gt;
    from resource_management import *
  File "/usr/lib/python2.6/site-packages/resource_management/__init__.py", line 23, in &amp;lt;module&amp;gt;
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/__init__.py", line 23, in &amp;lt;module&amp;gt;
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/__init__.py", line 25, in &amp;lt;module&amp;gt;
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/default.py", line 24, in &amp;lt;module&amp;gt;
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/__init__.py", line 23, in &amp;lt;module&amp;gt;
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 31, in &amp;lt;module&amp;gt;
  File "/usr/lib/python2.6/site-packages/ambari_commons/__init__.py", line 21, in &amp;lt;module&amp;gt;
  File "/usr/lib/python2.6/site-packages/ambari_commons/os_check.py", line 133, in &amp;lt;module&amp;gt;
  File "/usr/lib/python2.6/site-packages/ambari_commons/os_check.py", line 115, in __init__
  File "/usr/lib/python2.6/site-packages/ambari_commons/os_check.py", line 112, in initialize_data &lt;/PRE&gt;&lt;P&gt;Exception: Couldn't load 'os_family.json' file&lt;/P&gt;&lt;P&gt;First HDP node restats OK. Both nodes are freshly installed and simillar. What's wrong? &lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 23:00:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-error-when-restarting-flume-agent/m-p/139381#M19344</guid>
      <dc:creator>k_elsukov</dc:creator>
      <dc:date>2016-02-12T23:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari error when restarting flume agent</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-error-when-restarting-flume-agent/m-p/139382#M19345</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2583/kelsukov.html" nodeid="2583"&gt;@Kirill Elsukov&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;I hate to say this ..You have to uninstall ambari-agent and reinstall...I have see this behavior few times and after lot of troubleshooting...I fixed it by following the above approach&lt;/P&gt;&lt;P&gt;ambari-agent stop&lt;/P&gt;&lt;P&gt;yum remove ambari-agent&lt;/P&gt;&lt;P&gt;yum install ambari-agent&lt;/P&gt;&lt;P&gt;ambar-agent start&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 23:16:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-error-when-restarting-flume-agent/m-p/139382#M19345</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-12T23:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari error when restarting flume agent</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-error-when-restarting-flume-agent/m-p/139383#M19346</link>
      <description>&lt;P&gt;I reinstalled ambari-client but it didn't help. It didn't even allow to stop Flume service:&lt;/P&gt;&lt;PRE&gt;Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/FLUME/1.4.0.2.0/package/scripts/flume_handler.py", line 20, in &amp;lt;module&amp;gt;
    import flume_upgrade
  File "/var/lib/ambari-agent/cache/common-services/FLUME/1.4.0.2.0/package/scripts/flume_upgrade.py", line 24, in &amp;lt;module&amp;gt;
    from resource_management.core.logger import Logger
  File "/usr/lib/python2.6/site-packages/resource_management/__init__.py", line 23, in &amp;lt;module&amp;gt;
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/__init__.py", line 23, in &amp;lt;module&amp;gt;
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/__init__.py", line 25, in &amp;lt;module&amp;gt;
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/default.py", line 24, in &amp;lt;module&amp;gt;
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/__init__.py", line 23, in &amp;lt;module&amp;gt;
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 31, in &amp;lt;module&amp;gt;
  File "/usr/lib/python2.6/site-packages/ambari_commons/__init__.py", line 21, in &amp;lt;module&amp;gt;
  File "/usr/lib/python2.6/site-packages/ambari_commons/os_check.py", line 133, in &amp;lt;module&amp;gt;
  File "/usr/lib/python2.6/site-packages/ambari_commons/os_check.py", line 115, in __init__
  File "/usr/lib/python2.6/site-packages/ambari_commons/os_check.py", line 112, in initialize_data &lt;/PRE&gt;&lt;P&gt;Exception: Couldn't load 'os_family.json' file&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 23:48:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-error-when-restarting-flume-agent/m-p/139383#M19346</guid>
      <dc:creator>k_elsukov</dc:creator>
      <dc:date>2016-02-12T23:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari error when restarting flume agent</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-error-when-restarting-flume-agent/m-p/139384#M19347</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2583/kelsukov.html" nodeid="2583"&gt;@Kirill Elsukov&lt;/A&gt;&lt;P&gt;Try this &lt;/P&gt;&lt;P&gt;cd /usr/lib/python2.6/site-packages/&lt;/P&gt;&lt;P&gt;ln -s /usr/lib/ambari-agent/lib/ambari_commons  ambari_commons&lt;/P&gt;&lt;P&gt;ln -s /usr/lib/ambari-agent/lib/resource_management resource_management&lt;/P&gt;&lt;P&gt;ln -s  /usr/lib/ambari-agent/lib/ambari_jinja2 ambari_jinja2&lt;/P&gt;&lt;P&gt;ambari-agent restart &lt;/P&gt;</description>
      <pubDate>Sat, 13 Feb 2016 09:41:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-error-when-restarting-flume-agent/m-p/139384#M19347</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-13T09:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari error when restarting flume agent</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-error-when-restarting-flume-agent/m-p/139385#M19348</link>
      <description>&lt;P&gt;That didn't help, I still get the errors. &lt;/P&gt;&lt;P&gt;I've found a solution from another simillar issue:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;remove all ambari* from /usr/lib/python2.6/site-packages, then&lt;/LI&gt;&lt;LI&gt;yum remove ambari-agent&lt;/LI&gt;&lt;LI&gt;yum install ambari-agent&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;That did help, but now I can't start ambari-agent because of the folllowing error:&lt;/P&gt;&lt;P&gt;"Failed to start ping port listener of: [Errno 98] Address already in use"&lt;/P&gt;</description>
      <pubDate>Sat, 20 Feb 2016 22:18:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-error-when-restarting-flume-agent/m-p/139385#M19348</guid>
      <dc:creator>k_elsukov</dc:creator>
      <dc:date>2016-02-20T22:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari error when restarting flume agent</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-error-when-restarting-flume-agent/m-p/139386#M19349</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2583/kelsukov.html" nodeid="2583"&gt;@Kirill Elsukov&lt;/A&gt;&lt;P&gt;That's what I shared in my initial reply &lt;/P&gt;&lt;P&gt;"I hate to say this ..You have to uninstall ambari-agent and reinstall...I have see this behavior few times and after lot of troubleshooting...I fixed it by following the above approach&lt;/P&gt;&lt;P&gt;ambari-agent stop&lt;/P&gt;&lt;P&gt;yum remove ambari-agent&lt;/P&gt;&lt;P&gt;yum install ambari-agent&lt;/P&gt;&lt;P&gt;ambar-agent start"&lt;/P&gt;&lt;P&gt;ambari-agent stop&lt;/P&gt;&lt;P&gt;ambari-agent start &lt;/P&gt;&lt;P&gt;If it does not work then do this&lt;/P&gt;&lt;P&gt;root@phdns02 ~]# &lt;STRONG&gt;netstat -anp | grep 8670&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;tcp        0      0 0.0.0.0:8670                0.0.0.0:*                   LISTEN      &lt;STRONG&gt;446256&lt;/STRONG&gt;/python2      &lt;/P&gt;&lt;P&gt;[root@phdns02 ~]# ps -ef | grep 446256&lt;/P&gt;&lt;P&gt;root     175471 170130  0 06:28 pts/1    00:00:00 grep 446256&lt;/P&gt;&lt;P&gt;root     446256 446248  2 Feb14 ?        03:10:42 /usr/bin/python2 /usr/lib/python2.6/site-packages/ambari_agent/main.py start --expected-hostname=phdns02.cloud.hortonworks.com&lt;/P&gt;&lt;P&gt;kill -9 pid&lt;/P&gt;</description>
      <pubDate>Sat, 20 Feb 2016 22:28:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-error-when-restarting-flume-agent/m-p/139386#M19349</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-20T22:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari error when restarting flume agent</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-error-when-restarting-flume-agent/m-p/139387#M19350</link>
      <description>&lt;P&gt;Yep, that did help. So in my case the final result is:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;remove all ambari* from /usr/lib/python2.6/site-packages&lt;/LI&gt;&lt;LI&gt;yum remove ambari-agent&lt;/LI&gt;&lt;LI&gt;yum install ambari-agent&lt;/LI&gt;&lt;LI&gt;ps -ef | grep ambari&lt;/LI&gt;&lt;LI&gt;kill -9 &amp;lt;process_id&amp;gt; with &amp;lt;process_id&amp;gt; of ambari_agent processes&lt;/LI&gt;&lt;LI&gt;ambari-agent start&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Sat, 20 Feb 2016 22:33:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-error-when-restarting-flume-agent/m-p/139387#M19350</guid>
      <dc:creator>k_elsukov</dc:creator>
      <dc:date>2016-02-20T22:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari error when restarting flume agent</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-error-when-restarting-flume-agent/m-p/139388#M19351</link>
      <description>&lt;P&gt;Looks like after reinstalling ambari-agent metrics crashed. I recieve an error when trying to start it:&lt;/P&gt;&lt;PRE&gt;Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/metrics_monitor.py", line 58, in &amp;lt;module&amp;gt;
    AmsMonitor().execute()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 219, in execute
  File "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/metrics_monitor.py", line 37, in start
    self.configure(env) # for security
  File "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/metrics_monitor.py", line 32, in configure
    import params
  File "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/params.py", line 26, in &amp;lt;module&amp;gt;
    import status_params
  File "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/status_params.py", line 37, in &amp;lt;module&amp;gt;
    kinit_path_local = functions.get_kinit_path(default('/configurations/kerberos-env/executable_search_paths', None))
NameError: name 'functions' is not defined&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 Feb 2016 22:36:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-error-when-restarting-flume-agent/m-p/139388#M19351</guid>
      <dc:creator>k_elsukov</dc:creator>
      <dc:date>2016-02-25T22:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari error when restarting flume agent</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-error-when-restarting-flume-agent/m-p/139389#M19352</link>
      <description>&lt;P&gt;I had this same issue and these 4 steps resolved it each time.  (Seemed for me that flume agent would not stop only when restarting flume service after config change.  If I stopped the flume agent, then made config change, then restart flume service, I did not get this issue).&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2016 00:32:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-error-when-restarting-flume-agent/m-p/139389#M19352</guid>
      <dc:creator>gkeys</dc:creator>
      <dc:date>2016-07-08T00:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari error when restarting flume agent</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-error-when-restarting-flume-agent/m-p/139390#M19353</link>
      <description>&lt;P&gt;NOTE: I can replicate this issue on the sandbox but not another cluster I installed.
&lt;STRONG&gt;&lt;EM&gt;Could anyone verify if you are also getting this issue, and if it is on sandbox or not.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jul 2016 02:10:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-error-when-restarting-flume-agent/m-p/139390#M19353</guid>
      <dc:creator>gkeys</dc:creator>
      <dc:date>2016-07-09T02:10:56Z</dc:date>
    </item>
  </channel>
</rss>

