<?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: Python errors or script does not Exist while installing Cluster Services in Ambari in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Python-errors-or-script-does-not-Exist-while-installing/m-p/95785#M59144</link>
    <description>&lt;P&gt;This is usually a case when an old repo was installed first and was not cleaned before trying to install Ambari 2.1.2.&lt;/P&gt;&lt;P&gt;You need to clean everything and reinstall.  Because of the old repos that exist, some python scripts would be old and others missing.&lt;/P&gt;&lt;P&gt;Clean the repos.&lt;/P&gt;&lt;PRE&gt;yum repolist | grep ambari

yum clean all

yum clean dbcache

yum clean metadata

yum makecache

rpm —rebuilddb

yum history new
&lt;/PRE&gt;&lt;P&gt;If there are other repos beside Ambari 2.1.2 or the version you desire, remove it.&lt;/P&gt;&lt;PRE&gt;ambari-server stop

ambari-server reset

ambari-agent stop

rm -rf /etc/yum.repos.d/ambari.repo

yum erase ambari-server and/or yum erase ambari-agent&lt;/PRE&gt;&lt;P&gt;Then get the right repos and download on all nodes.  Go to doc for your OS.  &lt;A href="http://docs.hortonworks.com/HDPDocuments/Ambari-2.1.2.0/bk_Installing_HDP_AMB/content/_download_the_ambari_repo.html"&gt;Ambari 2.1.2&lt;/A&gt; &lt;/P&gt;&lt;PRE&gt;wget -nv &lt;A href="http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.1.2/ambari.repo" target="_blank"&gt;http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.1.2/ambari.repo&lt;/A&gt; -O /etc/yum.repos.d/ambari.repo&lt;/PRE&gt;&lt;P&gt;Then follow these instructions to complete cleanup&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://community.hortonworks.com/questions/1110/how-to-completely-remove-uninstall-ambari-and-hdp.html#answer-1111"&gt;Completely Clean and Reinstall Ambari&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Oct 2015 04:17:12 GMT</pubDate>
    <dc:creator>amcbarnett</dc:creator>
    <dc:date>2015-10-22T04:17:12Z</dc:date>
    <item>
      <title>Python errors or script does not Exist while installing Cluster Services in Ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Python-errors-or-script-does-not-Exist-while-installing/m-p/95782#M59141</link>
      <description>&lt;P&gt;I'm getting below issue while installing services using Ambari2.1.2&lt;/P&gt;&lt;PRE&gt;File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 87, in action_create

raise Fail("Applying %s failed, parent directory %s doesn't exist" % (self.resource, dirname))

resource_management.core.exceptions.Fail: Applying File['/var/lib/ambari-agent/tmp/changeUid.sh'] failed, parent directory /var/lib/ambari-agent/tmp doesn't exist

Error: Error: Unable to run the custom hook script ['/usr/bin/python2.6', '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/hook.py', 'ANY', '/var/lib/ambari-agent/data/command-992.json', '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY', '/var/lib/ambari-agent/data/structured-out-992.json', 'INFO', '/var/lib/ambari-agent/tmp']

/var/lib/ambari-agent/tmp does exist&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Oct 2015 04:00:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Python-errors-or-script-does-not-Exist-while-installing/m-p/95782#M59141</guid>
      <dc:creator>amcbarnett</dc:creator>
      <dc:date>2015-10-22T04:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: Python errors or script does not Exist while installing Cluster Services in Ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Python-errors-or-script-does-not-Exist-while-installing/m-p/95783#M59142</link>
      <description>&lt;P&gt;Which HDP stack is this on?&lt;/P&gt;&lt;P&gt;What operation was it trying to perform?&lt;/P&gt;&lt;P&gt;Is this location present and writeable, /var/lib/ambari-agent/tmp ?
If running ambari agent as root, it should have 777 and owned by root:root&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2015 04:07:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Python-errors-or-script-does-not-Exist-while-installing/m-p/95783#M59142</guid>
      <dc:creator>afernandez</dc:creator>
      <dc:date>2015-10-22T04:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Python errors or script does not Exist while installing Cluster Services in Ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Python-errors-or-script-does-not-Exist-while-installing/m-p/95784#M59143</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/326/afernandez.html" nodeid="326"&gt;@afernandez@hortonworks.com&lt;/A&gt; Its HDP stack: HDP2.3.2, Ambari2.1.2 fresh install. Ambari is running with non-root user.&lt;/P&gt;&lt;P&gt;/var/lib/ambari-agent/tmp has ownership 777 root:root&lt;/P&gt;&lt;P&gt;Operation I am performing to setup HDP cluster and it fails with issues during services install - Ambari cluster install wizard Step9.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2015 04:13:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Python-errors-or-script-does-not-Exist-while-installing/m-p/95784#M59143</guid>
      <dc:creator>pardeep_kumar</dc:creator>
      <dc:date>2015-10-22T04:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Python errors or script does not Exist while installing Cluster Services in Ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Python-errors-or-script-does-not-Exist-while-installing/m-p/95785#M59144</link>
      <description>&lt;P&gt;This is usually a case when an old repo was installed first and was not cleaned before trying to install Ambari 2.1.2.&lt;/P&gt;&lt;P&gt;You need to clean everything and reinstall.  Because of the old repos that exist, some python scripts would be old and others missing.&lt;/P&gt;&lt;P&gt;Clean the repos.&lt;/P&gt;&lt;PRE&gt;yum repolist | grep ambari

yum clean all

yum clean dbcache

yum clean metadata

yum makecache

rpm —rebuilddb

yum history new
&lt;/PRE&gt;&lt;P&gt;If there are other repos beside Ambari 2.1.2 or the version you desire, remove it.&lt;/P&gt;&lt;PRE&gt;ambari-server stop

ambari-server reset

ambari-agent stop

rm -rf /etc/yum.repos.d/ambari.repo

yum erase ambari-server and/or yum erase ambari-agent&lt;/PRE&gt;&lt;P&gt;Then get the right repos and download on all nodes.  Go to doc for your OS.  &lt;A href="http://docs.hortonworks.com/HDPDocuments/Ambari-2.1.2.0/bk_Installing_HDP_AMB/content/_download_the_ambari_repo.html"&gt;Ambari 2.1.2&lt;/A&gt; &lt;/P&gt;&lt;PRE&gt;wget -nv &lt;A href="http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.1.2/ambari.repo" target="_blank"&gt;http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.1.2/ambari.repo&lt;/A&gt; -O /etc/yum.repos.d/ambari.repo&lt;/PRE&gt;&lt;P&gt;Then follow these instructions to complete cleanup&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://community.hortonworks.com/questions/1110/how-to-completely-remove-uninstall-ambari-and-hdp.html#answer-1111"&gt;Completely Clean and Reinstall Ambari&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2015 04:17:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Python-errors-or-script-does-not-Exist-while-installing/m-p/95785#M59144</guid>
      <dc:creator>amcbarnett</dc:creator>
      <dc:date>2015-10-22T04:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Python errors or script does not Exist while installing Cluster Services in Ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Python-errors-or-script-does-not-Exist-while-installing/m-p/95786#M59145</link>
      <description>&lt;P&gt;I would also clean /usr/lib/python2.6/site-packages/ for any residual ambari-specific python files, specifically symlinks. It's a common problem, though, error is different.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Oct 2015 08:36:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Python-errors-or-script-does-not-Exist-while-installing/m-p/95786#M59145</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2015-10-23T08:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Python errors or script does not Exist while installing Cluster Services in Ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Python-errors-or-script-does-not-Exist-while-installing/m-p/95787#M59146</link>
      <description>&lt;P&gt;I ran into a very similar issue with the same error message. I could only diagnose it by diving into the python scripts of the resource_management module, and let it dump more information to stdout.&lt;/P&gt;&lt;P&gt;In our case, it was not due to stale versions. Our cluster uses a non-root installation of Ambari, but somehow, the node where a service failed to start ended up having an incorrect sudoers configuration (in particular: the "Defaults: ambari !requiretty" line was missing). This caused the directory existence test to fail with the message "sudo: sorry, you must have a tty to run sudo", but the script does not distinguish between the nonzero exit status of 'test' and the nonzero exit status of 'sudo'.&lt;/P&gt;&lt;P&gt;The solution was to properly configure sudo. After doing so, the service could start.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2016 21:07:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Python-errors-or-script-does-not-Exist-while-installing/m-p/95787#M59146</guid>
      <dc:creator>stijnvd</dc:creator>
      <dc:date>2016-10-31T21:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: Python errors or script does not Exist while installing Cluster Services in Ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Python-errors-or-script-does-not-Exist-while-installing/m-p/95788#M59147</link>
      <description>&lt;P&gt;Error: Error: Unable to run the custom hook script ['/usr/bin/python', '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/hook.py', 'ANY', '/var/lib/ambari-agent/data/command-247.json', '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY', '/var/lib/ambari-agent/data/structured-out-247.json', 'INFO', '/var/lib/ambari-agent/tmp', 'PROTOCOL_TLSv1', '']&lt;/P&gt;&lt;P&gt;Please some one help me for the above error message and suggest . Thanks in advance , kishore Jannu&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;I m Experiencing the same issues kindly suggest what did you change . Im  getting the below error . Please some assist me&lt;/P&gt;&lt;P&gt;Error: Error: Unable to run the custom hook script ['/usr/bin/python', '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/hook.py', 'ANY', '/var/lib/ambari-agent/data/command-247.json', '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY', '/var/lib/ambari-agent/data/structured-out-247.json', 'INFO', '/var/lib/ambari-agent/tmp', 'PROTOCOL_TLSv1', '']&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 21:05:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Python-errors-or-script-does-not-Exist-while-installing/m-p/95788#M59147</guid>
      <dc:creator>kishorejannu</dc:creator>
      <dc:date>2018-12-14T21:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: Python errors or script does not Exist while installing Cluster Services in Ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Python-errors-or-script-does-not-Exist-while-installing/m-p/95789#M59148</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/44386/kishorejannu.html" nodeid="44386"&gt;@Kishore Jannu&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Its better to create a new thread on this one.&lt;/P&gt;&lt;P&gt;this original question used to be for very old ambari version.&lt;/P&gt;&lt;P&gt;When you are raising a new thread Please post the exception in code format&lt;/P&gt;&lt;PRE&gt;I am code format&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Dec 2018 22:43:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Python-errors-or-script-does-not-Exist-while-installing/m-p/95789#M59148</guid>
      <dc:creator>akhilsnaik</dc:creator>
      <dc:date>2018-12-14T22:43:14Z</dc:date>
    </item>
  </channel>
</rss>

