Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

How to re-install oozie-client ?

Highlighted

How to re-install oozie-client ?

New Contributor

My initial cluster installation failed due to lack of space under the / directory. I cleaned the / directory and made more room of disk space and tried to Retry the cluster installation via Ambari Cluster installation wizard. But every Retry failed with oozie-client installation

I can see the error is actually caused by the following. See the entire error log at the end of this post.

$ hdp-select set oozie-client 2.6.4.0-91
symlink target /usr/hdp/current/oozie-client for oozie already exists and it is not a symlink.
$ echo $?
1

I removed /usr/hdp/current/oozie-client, removed oozie-client rpm, deleted the service component, oozie-client, from database via Ambari rest API, and even removed the hdp-select rpm, then retried the cluster installation, but still the Ambari Cluster Installation Wizard failed at oozie-client installation with exactly the same error message and the /usr/hdp/current/oozie-client directory somehow came back even though it had been removed.

$ find /usr/hdp/current/oozie-client
/usr/hdp/current/oozie-client
/usr/hdp/current/oozie-client/conf
/usr/hdp/current/oozie-client/conf/oozie-site.jceks
/usr/hdp/current/oozie-client/conf/oozie-site.xml
/usr/hdp/current/oozie-client/conf/oozie-env.sh
/usr/hdp/current/oozie-client/conf/oozie-log4j.properties
/usr/hdp/current/oozie-client/conf/adminusers.txt
/usr/hdp/current/oozie-client/conf/hadoop-config.xml
/usr/hdp/current/oozie-client/conf/oozie-default.xml
/usr/hdp/current/oozie-client/conf/action-conf
/usr/hdp/current/oozie-client/conf/action-conf/hive.xml

How do I do a fresh re-install of oozie-client in order to continue the cluster installation via Ambari ?

The following is the entire error log when the cluster installation Wizard failed

2018-02-25 21:06:31,433 - The 'oozie-client' component did not advertise a version. This may indicate a problem with the component packaging. However, the stack-select tool was able to report a single version installed (2.6.4.0-91). This is the version that will be reported.
2018-02-25 21:08:48,022 - Could not determine stack version for component oozie-client by calling '/usr/bin/hdp-select status oozie-client > /tmp/tmpITYi8Q'. Return Code: 1, Output: .
2018-02-25 21:08:48,062 - The 'oozie-client' component did not advertise a version. This may indicate a problem with the component packaging. However, the stack-select tool was able to report a single version installed (2.6.4.0-91). This is the version that will be reported.
2018-02-25 21:08:48,633 - Could not determine stack version for component oozie-client by calling '/usr/bin/hdp-select status oozie-client > /tmp/tmpKWJkBC'. Return Code: 1, Output: .
2018-02-25 21:08:48,659 - The 'oozie-client' component did not advertise a version. This may indicate a problem with the component packaging. However, the stack-select tool was able to report a single version installed (2.6.4.0-91). This is the version that will be reported.
Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/hook.py", line 37, in <module>
    AfterInstallHook().execute()
  File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 375, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/hook.py", line 31, in hook
    setup_stack_symlinks(self.stroutfile)
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py", line 62, in setup_stack_symlinks
    stack_select.select(package, json_version)
  File "/usr/lib/ambari-agent/lib/resource_management/libraries/functions/stack_select.py", line 313, in select
    Execute(command, sudo=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 262, in action_run
    tries=self.resource.tries, try_sleep=self.resource.try_sleep)
  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)
  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 303, in _call
    raise ExecutionFailed(err_msg, code, out, err)
resource_management.core.exceptions.ExecutionFailed: Execution of 'ambari-python-wrap /usr/bin/hdp-select set oozie-client 2.6.4.0-91' returned 1. symlink target /usr/hdp/current/oozie-client for oozie already exists and it is not a symlink.
stdout:   /var/lib/ambari-agent/data/output-671.txt
2018-02-25 21:06:30,584 - Stack Feature Version Info: Cluster Stack=2.6, Command Stack=None, Command Version=None -> 2.6
2018-02-25 21:06:30,589 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf
2018-02-25 21:06:30,590 - Group['hdfs'] {}
2018-02-25 21:06:30,592 - Group['hadoop'] {}
2018-02-25 21:06:30,592 - Group['users'] {}
2018-02-25 21:06:30,593 - User['zookeeper'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-02-25 21:06:30,595 - User['ams'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-02-25 21:06:30,597 - User['oozie'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'users'], 'uid': None}
2018-02-25 21:06:30,599 - User['ambari-qa'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'users'], 'uid': None}
2018-02-25 21:06:30,601 - User['hdfs'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hdfs'], 'uid': None}
2018-02-25 21:06:30,602 - User['yarn'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-02-25 21:06:30,604 - User['mapred'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-02-25 21:06:30,606 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2018-02-25 21:06:30,608 - Execute['/var/lib/ambari-agent/tmp/changeUid.sh ambari-qa /tmp/hadoop-ambari-qa,/tmp/hsperfdata_ambari-qa,/home/ambari-qa,/tmp/ambari-qa,/tmp/sqoop-ambari-qa 0'] {'not_if': '(test $(id -u ambari-qa) -gt 1000) || (false)'}
2018-02-25 21:06:30,615 - Skipping Execute['/var/lib/ambari-agent/tmp/changeUid.sh ambari-qa /tmp/hadoop-ambari-qa,/tmp/hsperfdata_ambari-qa,/home/ambari-qa,/tmp/ambari-qa,/tmp/sqoop-ambari-qa 0'] due to not_if
2018-02-25 21:06:30,615 - Group['hdfs'] {}
2018-02-25 21:06:30,616 - User['hdfs'] {'fetch_nonlocal_groups': True, 'groups': ['hdfs', u'hdfs']}
2018-02-25 21:06:30,617 - FS Type: 
2018-02-25 21:06:30,617 - Directory['/etc/hadoop'] {'mode': 0755}
2018-02-25 21:06:30,634 - File['/usr/hdp/current/hadoop-client/conf/hadoop-env.sh'] {'content': InlineTemplate(...), 'owner': 'hdfs', 'group': 'hadoop'}
2018-02-25 21:06:30,635 - Directory['/var/lib/ambari-agent/tmp/hadoop_java_io_tmpdir'] {'owner': 'hdfs', 'group': 'hadoop', 'mode': 01777}
2018-02-25 21:06:30,652 - Repository['HDP-2.6-repo-11'] {'append_to_file': False, 'base_url': 'http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.4.0', 'action': ['create'], 'components': [u'HDP', 'main'], 'repo_template': '[{{repo_id}}]\nname={{repo_id}}\n{% if mirror_list %}mirrorlist={{mirror_list}}{% else %}baseurl={{base_url}}{% endif %}\n\npath=/\nenabled=1\ngpgcheck=0', 'repo_file_name': 'ambari-hdp-11', 'mirror_list': None}
2018-02-25 21:06:30,668 - File['/etc/yum.repos.d/ambari-hdp-11.repo'] {'content': '[HDP-2.6-repo-11]\nname=HDP-2.6-repo-11\nbaseurl=http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.4.0\n\npath=/\nenabled=1\ngpgcheck=0'}
2018-02-25 21:06:30,669 - Writing File['/etc/yum.repos.d/ambari-hdp-11.repo'] because contents don't match
2018-02-25 21:06:30,669 - Repository with url http://public-repo-1.hortonworks.com/HDP-GPL/centos7/2.x/updates/2.6.4.0 is not created due to its tags: set([u'GPL'])
2018-02-25 21:06:30,669 - Repository['HDP-UTILS-1.1.0.22-repo-11'] {'append_to_file': True, 'base_url': 'http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.22/repos/centos7', 'action': ['create'], 'components': [u'HDP-UTILS', 'main'], 'repo_template': '[{{repo_id}}]\nname={{repo_id}}\n{% if mirror_list %}mirrorlist={{mirror_list}}{% else %}baseurl={{base_url}}{% endif %}\n\npath=/\nenabled=1\ngpgcheck=0', 'repo_file_name': 'ambari-hdp-11', 'mirror_list': None}
2018-02-25 21:06:30,673 - File['/etc/yum.repos.d/ambari-hdp-11.repo'] {'content': '[HDP-2.6-repo-11]\nname=HDP-2.6-repo-11\nbaseurl=http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.4.0\n\npath=/\nenabled=1\ngpgcheck=0\n[HDP-UTILS-1.1.0.22-repo-11]\nname=HDP-UTILS-1.1.0.22-repo-11\nbaseurl=http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.22/repos/centos7\n\npath=/\nenabled=1\ngpgcheck=0'}
2018-02-25 21:06:30,673 - Writing File['/etc/yum.repos.d/ambari-hdp-11.repo'] because contents don't match
2018-02-25 21:06:30,674 - Package['unzip'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
2018-02-25 21:06:31,196 - Skipping installation of existing package unzip
2018-02-25 21:06:31,197 - Package['curl'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
2018-02-25 21:06:31,250 - Skipping installation of existing package curl
2018-02-25 21:06:31,251 - Package['hdp-select'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
2018-02-25 21:06:31,301 - Skipping installation of existing package hdp-select
2018-02-25 21:06:31,390 - call[('ambari-python-wrap', u'/usr/bin/hdp-select', 'versions')] {}
2018-02-25 21:06:31,433 - call returned (0, '2.6.4.0-91')
2018-02-25 21:06:31,433 - The 'oozie-client' component did not advertise a version. This may indicate a problem with the component packaging. However, the stack-select tool was able to report a single version installed (2.6.4.0-91). This is the version that will be reported.
2018-02-25 21:06:31,713 - Package['zip'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
2018-02-25 21:06:32,173 - Skipping installation of existing package zip
2018-02-25 21:06:32,174 - Command repositories: HDP-2.6-repo-11, HDP-2.6-GPL-repo-11, HDP-UTILS-1.1.0.22-repo-11
2018-02-25 21:06:32,174 - Applicable repositories: HDP-2.6-repo-11, HDP-2.6-GPL-repo-11, HDP-UTILS-1.1.0.22-repo-11
2018-02-25 21:06:32,175 - Looking for matching packages in the following repositories: HDP-2.6-repo-11, HDP-2.6-GPL-repo-11, HDP-UTILS-1.1.0.22-repo-11
2018-02-25 21:06:37,649 - Adding fallback repositories: HDP-2.6-repo-7, HDP-2.6-repo-10, HDP-UTILS-1.1.0.22, HDP-UTILS-1.1.0.22-repo-10, HDP-2.6-repo-6, HDP-2.6-repo-5, HDP-2.6-repo-4, HDP-2.6-repo-3, HDP-2.6-repo-2, HDP-2.6-repo-1, HDP-UTILS-1.1.0.22-repo-8, HDP-UTILS-1.1.0.22-repo-4, HDP-2.6-repo-9, HDP-2.6-repo-8, HDP-UTILS-1.1.0.22-repo-6, HDP-UTILS-1.1.0.22-repo-7, HDP-UTILS-1.1.0.22-repo-5, HDP-UTILS-1.1.0.22-repo-2, HDP-UTILS-1.1.0.22-repo-3, HDP-UTILS-1.1.0.22-repo-1, HDP-UTILS-1.1.0.22-repo-9, HDP-2.6.4.0
2018-02-25 21:07:14,720 - Package['oozie_2_6_4_0_91'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
2018-02-25 21:07:14,785 - Skipping installation of existing package oozie_2_6_4_0_91
2018-02-25 21:07:14,788 - Package['falcon_2_6_4_0_91'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
2018-02-25 21:07:14,850 - Installing package falcon_2_6_4_0_91 ('/usr/bin/yum -d 0 -e 0 -y install falcon_2_6_4_0_91')
2018-02-25 21:08:47,036 - Stack Feature Version Info: Cluster Stack=2.6, Command Stack=None, Command Version=None -> 2.6
2018-02-25 21:08:47,039 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf
2018-02-25 21:08:47,050 - File['/var/lib/ambari-agent/cred/lib/CredentialUtil.jar'] {'content': DownloadSource('http://r00pvdn0c.bnymellon.net:8080/resources/CredentialUtil.jar'), 'mode': 0755}
2018-02-25 21:08:47,051 - Not downloading the file from http://r00pvdn0c.bnymellon.net:8080/resources/CredentialUtil.jar, because /var/lib/ambari-agent/tmp/CredentialUtil.jar already exists
2018-02-25 21:08:47,051 - checked_call[('/usr/java/default/bin/java', '-cp', u'/var/lib/ambari-agent/cred/lib/*', 'org.apache.ambari.server.credentialapi.CredentialUtil', 'get', 'oozie.service.JPAService.jdbc.password', '-provider', u'jceks://file/var/lib/ambari-agent/cred/conf/oozie_client/oozie-site.jceks')] {}
2018-02-25 21:08:47,656 - checked_call returned (0, 'SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".\nSLF4J: Defaulting to no-operation (NOP) logger implementation\nSLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.\nFeb 25, 2018 9:08:47 PM org.apache.hadoop.util.NativeCodeLoader <clinit>\nWARNING: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable\noozie')
2018-02-25 21:08:47,662 - Stack Feature Version Info: Cluster Stack=2.6, Command Stack=None, Command Version=None -> 2.6
2018-02-25 21:08:47,669 - Directory['/usr/hdp/current/oozie-client/conf'] {'owner': 'oozie', 'create_parents': True, 'group': 'hadoop'}
2018-02-25 21:08:47,669 - Creating directory Directory['/usr/hdp/current/oozie-client/conf'] since it doesn't exist.
2018-02-25 21:08:47,670 - Changing owner for /usr/hdp/current/oozie-client/conf from 0 to oozie
2018-02-25 21:08:47,670 - Changing group for /usr/hdp/current/oozie-client/conf from 0 to hadoop
2018-02-25 21:08:47,671 - File['/usr/hdp/current/oozie-client/conf/oozie-site.jceks'] {'content': StaticFile('/var/lib/ambari-agent/cred/conf/oozie_client/oozie-site.jceks'), 'owner': 'oozie', 'group': 'hadoop', 'mode': 0640}
2018-02-25 21:08:47,671 - Writing File['/usr/hdp/current/oozie-client/conf/oozie-site.jceks'] because it doesn't exist
2018-02-25 21:08:47,672 - Changing owner for /usr/hdp/current/oozie-client/conf/oozie-site.jceks from 0 to oozie
2018-02-25 21:08:47,672 - Changing group for /usr/hdp/current/oozie-client/conf/oozie-site.jceks from 0 to hadoop
2018-02-25 21:08:47,672 - Changing permission for /usr/hdp/current/oozie-client/conf/oozie-site.jceks from 644 to 640
2018-02-25 21:08:47,673 - XmlConfig['oozie-site.xml'] {'group': 'hadoop', 'conf_dir': '/usr/hdp/current/oozie-client/conf', 'mode': 0664, 'configuration_attributes': {}, 'owner': 'oozie', 'configurations': ...}
2018-02-25 21:08:47,683 - Generating config: /usr/hdp/current/oozie-client/conf/oozie-site.xml
2018-02-25 21:08:47,683 - File['/usr/hdp/current/oozie-client/conf/oozie-site.xml'] {'owner': 'oozie', 'content': InlineTemplate(...), 'group': 'hadoop', 'mode': 0664, 'encoding': 'UTF-8'}
2018-02-25 21:08:47,695 - Writing File['/usr/hdp/current/oozie-client/conf/oozie-site.xml'] because it doesn't exist
2018-02-25 21:08:47,696 - Changing owner for /usr/hdp/current/oozie-client/conf/oozie-site.xml from 0 to oozie
2018-02-25 21:08:47,696 - Changing group for /usr/hdp/current/oozie-client/conf/oozie-site.xml from 0 to hadoop
2018-02-25 21:08:47,696 - Changing permission for /usr/hdp/current/oozie-client/conf/oozie-site.xml from 644 to 664
2018-02-25 21:08:47,702 - File['/usr/hdp/current/oozie-client/conf/oozie-env.sh'] {'content': InlineTemplate(...), 'owner': 'oozie', 'group': 'hadoop'}
2018-02-25 21:08:47,702 - Writing File['/usr/hdp/current/oozie-client/conf/oozie-env.sh'] because it doesn't exist
2018-02-25 21:08:47,702 - Changing owner for /usr/hdp/current/oozie-client/conf/oozie-env.sh from 0 to oozie
2018-02-25 21:08:47,703 - Changing group for /usr/hdp/current/oozie-client/conf/oozie-env.sh from 0 to hadoop
2018-02-25 21:08:47,703 - Directory['/etc/security/limits.d'] {'owner': 'root', 'create_parents': True, 'group': 'root'}
2018-02-25 21:08:47,705 - File['/etc/security/limits.d/oozie.conf'] {'content': Template('oozie.conf.j2'), 'owner': 'root', 'group': 'root', 'mode': 0644}
2018-02-25 21:08:47,708 - File['/usr/hdp/current/oozie-client/conf/oozie-log4j.properties'] {'content': InlineTemplate(...), 'owner': 'oozie', 'group': 'hadoop', 'mode': 0644}
2018-02-25 21:08:47,709 - Writing File['/usr/hdp/current/oozie-client/conf/oozie-log4j.properties'] because it doesn't exist
2018-02-25 21:08:47,709 - Changing owner for /usr/hdp/current/oozie-client/conf/oozie-log4j.properties from 0 to oozie
2018-02-25 21:08:47,710 - Changing group for /usr/hdp/current/oozie-client/conf/oozie-log4j.properties from 0 to hadoop
2018-02-25 21:08:47,715 - File['/usr/hdp/current/oozie-client/conf/adminusers.txt'] {'content': Template('adminusers.txt.j2'), 'owner': 'oozie', 'group': 'hadoop', 'mode': 0644}
2018-02-25 21:08:47,715 - Writing File['/usr/hdp/current/oozie-client/conf/adminusers.txt'] because it doesn't exist
2018-02-25 21:08:47,716 - Changing owner for /usr/hdp/current/oozie-client/conf/adminusers.txt from 0 to oozie
2018-02-25 21:08:47,716 - Changing group for /usr/hdp/current/oozie-client/conf/adminusers.txt from 0 to hadoop
2018-02-25 21:08:47,717 - File['/usr/lib/ambari-agent/DBConnectionVerification.jar'] {'content': DownloadSource('http://r00pvdn0c.bnymellon.net:8080/resources/DBConnectionVerification.jar')}
2018-02-25 21:08:47,717 - Not downloading the file from http://r00pvdn0c.bnymellon.net:8080/resources/DBConnectionVerification.jar, because /var/lib/ambari-agent/tmp/DBConnectionVerification.jar already exists
2018-02-25 21:08:47,717 - File['/usr/hdp/current/oozie-client/conf/hadoop-config.xml'] {'owner': 'oozie', 'group': 'hadoop'}
2018-02-25 21:08:47,717 - Writing File['/usr/hdp/current/oozie-client/conf/hadoop-config.xml'] because it doesn't exist
2018-02-25 21:08:47,718 - Changing owner for /usr/hdp/current/oozie-client/conf/hadoop-config.xml from 0 to oozie
2018-02-25 21:08:47,718 - Changing group for /usr/hdp/current/oozie-client/conf/hadoop-config.xml from 0 to hadoop
2018-02-25 21:08:47,718 - File['/usr/hdp/current/oozie-client/conf/oozie-default.xml'] {'owner': 'oozie', 'group': 'hadoop'}
2018-02-25 21:08:47,718 - Writing File['/usr/hdp/current/oozie-client/conf/oozie-default.xml'] because it doesn't exist
2018-02-25 21:08:47,720 - Changing owner for /usr/hdp/current/oozie-client/conf/oozie-default.xml from 0 to oozie
2018-02-25 21:08:47,720 - Changing group for /usr/hdp/current/oozie-client/conf/oozie-default.xml from 0 to hadoop
2018-02-25 21:08:47,721 - Directory['/usr/hdp/current/oozie-client/conf/action-conf'] {'owner': 'oozie', 'group': 'hadoop'}
2018-02-25 21:08:47,721 - Creating directory Directory['/usr/hdp/current/oozie-client/conf/action-conf'] since it doesn't exist.
2018-02-25 21:08:47,722 - Changing owner for /usr/hdp/current/oozie-client/conf/action-conf from 0 to oozie
2018-02-25 21:08:47,723 - Changing group for /usr/hdp/current/oozie-client/conf/action-conf from 0 to hadoop
2018-02-25 21:08:47,723 - File['/usr/hdp/current/oozie-client/conf/action-conf/hive.xml'] {'owner': 'oozie', 'group': 'hadoop'}
2018-02-25 21:08:47,724 - Writing File['/usr/hdp/current/oozie-client/conf/action-conf/hive.xml'] because it doesn't exist
2018-02-25 21:08:47,724 - Changing owner for /usr/hdp/current/oozie-client/conf/action-conf/hive.xml from 0 to oozie
2018-02-25 21:08:47,725 - Changing group for /usr/hdp/current/oozie-client/conf/action-conf/hive.xml from 0 to hadoop
2018-02-25 21:08:48,022 - Could not determine stack version for component oozie-client by calling '/usr/bin/hdp-select status oozie-client > /tmp/tmpITYi8Q'. Return Code: 1, Output: .
2018-02-25 21:08:48,022 - call[('ambari-python-wrap', u'/usr/bin/hdp-select', 'versions')] {}
2018-02-25 21:08:48,062 - call returned (0, '2.6.4.0-91')
2018-02-25 21:08:48,062 - The 'oozie-client' component did not advertise a version. This may indicate a problem with the component packaging. However, the stack-select tool was able to report a single version installed (2.6.4.0-91). This is the version that will be reported.
2018-02-25 21:08:48,351 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf
2018-02-25 21:08:48,388 - Execute[('ambari-python-wrap', u'/usr/bin/hdp-select', 'set', u'oozie-client', u'2.6.4.0-91')] {'sudo': True}
2018-02-25 21:08:48,633 - Could not determine stack version for component oozie-client by calling '/usr/bin/hdp-select status oozie-client > /tmp/tmpKWJkBC'. Return Code: 1, Output: .
2018-02-25 21:08:48,633 - call[('ambari-python-wrap', u'/usr/bin/hdp-select', 'versions')] {}
2018-02-25 21:08:48,659 - call returned (0, '2.6.4.0-91')
2018-02-25 21:08:48,659 - The 'oozie-client' component did not advertise a version. This may indicate a problem with the component packaging. However, the stack-select tool was able to report a single version installed (2.6.4.0-91). This is the version that will be reported.


Command failed after 1 tries
1 REPLY 1

Re: How to re-install oozie-client ?

New Contributor

I figured out why the /usr/hdp/current/oozie-client/conf directory keeps coming back. The oozie_client.py tried to create the conf directory under /usr/hdp/current/oozie-client which is supposed to be a symbolic link but is missing. There for the actual directory is created /usr/hdp/current/oozie-client with a conf subdirectory. This in turn caused the error, "symlink target /usr/hdp/current/oozie-client for oozie already exists and it is not a symlink".

Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie_client.py", line 71, in <module>
    OozieClient().execute()
  File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 375, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie_client.py", line 34, in install
    self.configure(env)
  File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 120, in locking_configure
    original_configure(obj, *args, **kw)
  File "/var/lib/ambari-agent/cache/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie_client.py", line 41, in configure
    oozie(is_server=False)
  File "/usr/lib/ambari-agent/lib/ambari_commons/os_family_impl.py", line 89, in thunk
    return fn(*args, **kwargs)
  File "/var/lib/ambari-agent/cache/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie.py", line 117, in oozie
    group = params.user_group
  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 185, in action_create
    sudo.makedirs(path, self.resource.mode or 0755)
  File "/usr/lib/ambari-agent/lib/resource_management/core/sudo.py", line 107, in makedirs
    raise Fail("Cannot create directory '{0}' as '{1}' is a broken symlink".format(path, dirname))
resource_management.core.exceptions.Fail: Cannot create directory '/usr/hdp/current/oozie-client/conf' as '/usr/hdp/current/oozie-client' is a broken symlink

Now that I got the symbolic link created for oozie-client

/usr/hdp/current/oozie-client -> /usr/hdp/2.6.4.0-91/oozie

But oozie is missing under /usr/hdp/2.6.4.0-91. How do I make Ambari create it ? Will it help if I delete /var/lib/ambari-agent/cache ?

Don't have an account?
Coming from Hortonworks? Activate your account here