[
https://issues.apache.org/jira/browse/AMBARI-25162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16773480#comment-16773480
]
Dinesh Chitlangia commented on AMBARI-25162:
--------------------------------------------
Will post a pull-request soon. I am unable to assign this to myself.
> Oozie Service Check fails with : "NameError: global name 'Fail' is not
> defined"
> -------------------------------------------------------------------------------
>
> Key: AMBARI-25162
> URL: https://issues.apache.org/jira/browse/AMBARI-25162
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Reporter: Dinesh Chitlangia
> Priority: Major
>
> STDERROR:
> {noformat}
> 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 <module>
> 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{noformat}
> STDOUT
> {noformat}
> 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 -> 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
> http://ambariServer:8080/resources/CredentialUtil.jar, 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{noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)