<?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: Oozie Service Check fails  after upgrading to Ambari-2.7.3: raise Fail(format(NO_DOCS_FOLDER_MESSAGE)) NameError: global name 'Fail' is not defined in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Oozie-Service-Check-fails-after-upgrading-to-Ambari-2-7-3/m-p/243944#M205739</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/716/mbalakrishnan.html" nodeid="716"&gt;@Mahesh Balakrishnan&lt;/A&gt; Since there can be only one accepted answer &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; , I am sharing 25 bounty points with you. Thanks for the guidance.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Feb 2019 04:52:59 GMT</pubDate>
    <dc:creator>dineshc</dc:creator>
    <dc:date>2019-02-16T04:52:59Z</dc:date>
    <item>
      <title>Oozie Service Check fails  after upgrading to Ambari-2.7.3: raise Fail(format(NO_DOCS_FOLDER_MESSAGE)) NameError: global name 'Fail' is not defined</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Oozie-Service-Check-fails-after-upgrading-to-Ambari-2-7-3/m-p/243939#M205734</link>
      <description>&lt;P&gt;HDP-2.6.5, RHEL 7, Kerberized, Ambari-2.6 upgraded to Ambari-2.7.3&lt;/P&gt;&lt;P&gt;Oozie Service Check fails:&lt;/P&gt;&lt;P&gt;STDERR&lt;/P&gt;&lt;PRE&gt;Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/OOZIE/4.0.0.2.0/package/scripts/service_check.py", line 139, in &amp;lt;module&amp;gt;
    OozieServiceCheck().execute()
  File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 352, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/common-services/OOZIE/4.0.0.2.0/package/scripts/service_check.py", line 52, in service_check
    OozieServiceCheckDefault.oozie_smoke_shell_file(smoke_test_file_name, prepare_hdfs_file_name)
  File "/var/lib/ambari-agent/cache/common-services/OOZIE/4.0.0.2.0/package/scripts/service_check.py", line 70, in oozie_smoke_shell_file
    raise Fail(format(NO_DOCS_FOLDER_MESSAGE)) 
NameError: global name 'Fail' is not defined&lt;/PRE&gt;&lt;P&gt;STDOUT&lt;/P&gt;&lt;PRE&gt;2019-02-15 19:02:10,245 - Stack Feature Version Info: Cluster Stack=2.6, Command Stack=None, Command Version=2.6.5.74-2 -&amp;gt; 2.6.5.74-2
2019-02-15 19:02:10,250 - Using hadoop conf dir: /usr/hdp/2.6.5.74-2/hadoop/conf
2019-02-15 19:02:10,275 - File['/var/lib/ambari-agent/cred/lib/CredentialUtil.jar'] {'content': DownloadSource('http://ambariServer.com:8080/resources/CredentialUtil.jar'), 'mode': 0755}
2019-02-15 19:02:10,277 - Not downloading the file from &lt;A href="http://ambariServer:8080/resources/CredentialUtil.jar" target="_blank"&gt;http://ambariServer:8080/resources/CredentialUtil.jar&lt;/A&gt;, because /var/lib/ambari-agent/tmp/CredentialUtil.jar already exists
2019-02-15 19:02:11,274 - File['/var/lib/ambari-agent/tmp/oozieSmoke2.sh'] {'content': StaticFile('oozieSmoke2.sh'), 'mode': 0755}
2019-02-15 19:02:11,277 - File['/var/lib/ambari-agent/tmp/prepareOozieHdfsDirectories.sh'] {'content': StaticFile('prepareOozieHdfsDirectories.sh'), 'mode': 0755}

Command failed after 1 tries&lt;/PRE&gt;&lt;P&gt;I have noticed that hosts with Oozie Server and Clients do not have the following directories:&lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;/usr/hdp/current/oozie-client/doc/&lt;/LI&gt;&lt;LI&gt;/usr/hdp/current/oozie-server/doc/&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;So, I have tried removing &lt;STRONG&gt;tsflags=nodocs &lt;/STRONG&gt;from&lt;STRONG&gt; /etc/yum.conf &lt;/STRONG&gt;and attempted reinstalling the oozie client, however, it still does not create the above folders.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Feb 2019 03:26:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Oozie-Service-Check-fails-after-upgrading-to-Ambari-2-7-3/m-p/243939#M205734</guid>
      <dc:creator>dineshc</dc:creator>
      <dc:date>2019-02-16T03:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie Service Check fails  after upgrading to Ambari-2.7.3: raise Fail(format(NO_DOCS_FOLDER_MESSAGE)) NameError: global name 'Fail' is not defined</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Oozie-Service-Check-fails-after-upgrading-to-Ambari-2-7-3/m-p/243940#M205735</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/504/kkulkarni.html" nodeid="504"&gt;@Kuldeep Kulkarni&lt;/A&gt;, &lt;A rel="user" href="https://community.cloudera.com/users/11311/apappu.html" nodeid="11311"&gt;@amarnath reddy pappu&lt;/A&gt;&lt;/P&gt;&lt;P&gt; Any pointers? TIA.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Feb 2019 03:27:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Oozie-Service-Check-fails-after-upgrading-to-Ambari-2-7-3/m-p/243940#M205735</guid>
      <dc:creator>dineshc</dc:creator>
      <dc:date>2019-02-16T03:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie Service Check fails  after upgrading to Ambari-2.7.3: raise Fail(format(NO_DOCS_FOLDER_MESSAGE)) NameError: global name 'Fail' is not defined</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Oozie-Service-Check-fails-after-upgrading-to-Ambari-2-7-3/m-p/243941#M205736</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/13511/dineshchitlangia.html" nodeid="13511"&gt;@Dinesh Chitlangia&lt;/A&gt;&lt;P&gt;On the host where you are seeing the issue, try removing the rpm's of oozie using yum remove oozie_2_6_* and then try reinstalling it from the command line using the command yum install oozie_2_6_* &lt;/P&gt;</description>
      <pubDate>Sat, 16 Feb 2019 03:55:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Oozie-Service-Check-fails-after-upgrading-to-Ambari-2-7-3/m-p/243941#M205736</guid>
      <dc:creator>quadoss</dc:creator>
      <dc:date>2019-02-16T03:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie Service Check fails  after upgrading to Ambari-2.7.3: raise Fail(format(NO_DOCS_FOLDER_MESSAGE)) NameError: global name 'Fail' is not defined</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Oozie-Service-Check-fails-after-upgrading-to-Ambari-2-7-3/m-p/243942#M205737</link>
      <description>&lt;P&gt;Please modify below script on ambari-server and replace cached copy of the same script with the modified script on each ambari-agent ( where you have oozie clients installed )&lt;/P&gt;&lt;P&gt;Script to be modified on Ambari Server:&lt;/P&gt;&lt;PRE&gt;/var/lib/ambari-server/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/service_check.py&lt;/PRE&gt;&lt;P&gt;What to modify?&lt;/P&gt;&lt;P&gt;Add below line:&lt;/P&gt;&lt;PRE&gt;from resource_management import *&lt;/PRE&gt;&lt;P&gt;Where is cached copy on ambari-agents/oozie-clients?&lt;/P&gt;&lt;PRE&gt;/var/lib/ambari-agent/cache/common-services/OOZIE/4.0.0.2.0/package/scripts/service_check.py&lt;/PRE&gt;&lt;P&gt;After this, you may face below error:&lt;/P&gt;&lt;PRE&gt;resource_management.core.exceptions.Fail: Cannot find /usr/hdp/current/oozie-client/doc. Possible reason is that /etc/yum.conf contains tsflags=nodocs which prevents this folder from being installed along with oozie-client package. If this is the case, please fix /etc/yum.conf and re-install the package.&lt;/PRE&gt;&lt;P&gt;To fix this, &lt;/P&gt;&lt;P&gt;Edit /etc/yum.conf and remove/comment out &lt;/P&gt;&lt;PRE&gt;tsflag=nodocs &lt;/PRE&gt;&lt;P&gt;Run below commands to reinstall oozie packages.&lt;/P&gt;&lt;PRE&gt;yum reinstall -y oozie_2_6_*&lt;/PRE&gt;&lt;P&gt;Hope this helps! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Feb 2019 04:47:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Oozie-Service-Check-fails-after-upgrading-to-Ambari-2-7-3/m-p/243942#M205737</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2019-02-16T04:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie Service Check fails  after upgrading to Ambari-2.7.3: raise Fail(format(NO_DOCS_FOLDER_MESSAGE)) NameError: global name 'Fail' is not defined</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Oozie-Service-Check-fails-after-upgrading-to-Ambari-2-7-3/m-p/243943#M205738</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/504/kkulkarni.html" nodeid="504"&gt;@Kuldeep Kulkarni&lt;/A&gt;&lt;P&gt;Thanks that got me past the initial problem and then I ran into following error:&lt;/P&gt;&lt;PRE&gt;resource_management.core.exceptions.Fail: Cannot find /usr/hdp/current/oozie-client/doc. Possible reason is that /etc/yum.conf contains tsflags=nodocs which prevents this folder from being installed along with oozie-client package. If this is the case, please fix /etc/yum.conf and re-install the package.&lt;/PRE&gt;&lt;P&gt;This was resolved by &lt;A rel="user" href="https://community.cloudera.com/users/716/mbalakrishnan.html" nodeid="716"&gt;@Mahesh Balakrishnan&lt;/A&gt;'s input of remove and install the packages.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Feb 2019 04:51:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Oozie-Service-Check-fails-after-upgrading-to-Ambari-2-7-3/m-p/243943#M205738</guid>
      <dc:creator>dineshc</dc:creator>
      <dc:date>2019-02-16T04:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie Service Check fails  after upgrading to Ambari-2.7.3: raise Fail(format(NO_DOCS_FOLDER_MESSAGE)) NameError: global name 'Fail' is not defined</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Oozie-Service-Check-fails-after-upgrading-to-Ambari-2-7-3/m-p/243944#M205739</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/716/mbalakrishnan.html" nodeid="716"&gt;@Mahesh Balakrishnan&lt;/A&gt; Since there can be only one accepted answer &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; , I am sharing 25 bounty points with you. Thanks for the guidance.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Feb 2019 04:52:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Oozie-Service-Check-fails-after-upgrading-to-Ambari-2-7-3/m-p/243944#M205739</guid>
      <dc:creator>dineshc</dc:creator>
      <dc:date>2019-02-16T04:52:59Z</dc:date>
    </item>
  </channel>
</rss>

