Support Questions

Find answers, ask questions, and share your expertise

Upgrading HDP 3.1.0 to 3.1.4 : Oozie Service check failed

avatar
Contributor

I'm facing an issue during the upgrade of HDP 3.1.0.0-78 to 3.1.4.0-315 on Ubuntu 18, and after the upgrade of Oozie Server : at the step 'Oozie Clients', I get the following error :

 

 

 

Traceback (most recent call last):
  File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 150, in _call_wrapper
    result = _call(command, **kwargs_copy)
  File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 314, in _call
    raise ExecutionFailed(err_msg, code, out, err)
ExecutionFailed: Execution of '/var/lib/ambari-agent/tmp/oozieSmoke2.sh ubuntu /usr/hdp/current/oozie-client /usr/hdp/current/oozie-client/conf /usr/hdp/current/oozie-client/bin http://server1:11000/oozie /usr/hdp/current/oozie-client/doc /usr/hdp/3.1.4.0-315/hadoop/conf /usr/hdp/3.1.4.0-315/hadoop/bin ambari-qa no-op True /etc/security/keytabs/smokeuser.headless.keytab /usr/bin/kinit ambari-qa-dbdne_fe@DOMAIN' returned 1. /usr/bin/kinit -kt /etc/security/keytabs/smokeuser.headless.keytab ambari-qa-dbdne_fe@DOMAIN; source /usr/hdp/current/oozie-client/conf/oozie-env.sh ; /usr/hdp/current/oozie-client/bin/oozie -Doozie.auth.token.cache=false job -oozie http://server1:11000/oozie -config /usr/hdp/current/oozie-client/doc/examples/apps/no-op/job.properties -run
Error: IO_ERROR : java.io.IOException: Error while connecting Oozie server. No of retries = 1. Exception = Error while authenticating with endpoint: http://server1:11000/oozie/versions

The above exception was the cause of the following exception:

Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/OOZIE/package/scripts/service_check.py", line 140, 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/stacks/HDP/3.0/services/OOZIE/package/scripts/service_check.py", line 53, in service_check
    OozieServiceCheckDefault.oozie_smoke_shell_file(smoke_test_file_name, prepare_hdfs_file_name)
  File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/OOZIE/package/scripts/service_check.py", line 125, in oozie_smoke_shell_file
    logoutput=True
  File "/usr/lib/ambari-agent/lib/resource_management/core/base.py", line 166, in __init__
    self.env.run()
  File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 160, in run
    self.run_action(resource, action)
  File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 124, in run_action
    provider_action()
  File "/usr/lib/ambari-agent/lib/resource_management/core/providers/system.py", line 263, in action_run
    returns=self.resource.returns)
  File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 72, in inner
    result = function(command, **kwargs)
  File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 102, in checked_call
    tries=tries, try_sleep=try_sleep, timeout_kill_strategy=timeout_kill_strategy, returns=returns)
  File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 150, in _call_wrapper
    result = _call(command, **kwargs_copy)
  File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 314, in _call
    raise ExecutionFailed(err_msg, code, out, err)
resource_management.core.exceptions.ExecutionFailed: Execution of '/var/lib/ambari-agent/tmp/oozieSmoke2.sh ubuntu /usr/hdp/current/oozie-client /usr/hdp/current/oozie-client/conf /usr/hdp/current/oozie-client/bin http://server1:11000/oozie /usr/hdp/current/oozie-client/doc /usr/hdp/3.1.4.0-315/hadoop/conf /usr/hdp/3.1.4.0-315/hadoop/bin ambari-qa no-op True /etc/security/keytabs/smokeuser.headless.keytab /usr/bin/kinit ambari-qa-dbdne_fe@DOMAIN' returned 1. /usr/bin/kinit -kt /etc/security/keytabs/smokeuser.headless.keytab ambari-qa-dbdne_fe@DOMAIN; source /usr/hdp/current/oozie-client/conf/oozie-env.sh ; /usr/hdp/current/oozie-client/bin/oozie -Doozie.auth.token.cache=false job -oozie http://server1:11000/oozie -config /usr/hdp/current/oozie-client/doc/examples/apps/no-op/job.properties -run
Error: IO_ERROR : java.io.IOException: Error while connecting Oozie server. No of retries = 1. Exception = Error while authenticating with endpoint: http://server1:11000/oozie/versions

 

 

 

 

I don't understand why this error happens.

Thanks in advance for your help

2 REPLIES 2

avatar
Contributor

Fixed after restoring /usr/hdp/3.1.0.0-78/oozie/conf/oozie-client-env.sh in /usr/hdp/3.1.4.0-315/oozie/conf/

avatar
Contributor

The restoring of /usr/hdp/3.1.0.0-78/oozie/conf/oozie-client-env.sh in /usr/hdp/3.1.4.0-315/oozie/conf/ is not the solution.

It seems to be related to the BUG-123169 (https://docs.cloudera.com/HDPDocuments/HDP3/HDP-3.1.4/release-notes/content/known_issues.html)