Support Questions
Find answers, ask questions, and share your expertise

Zookeper client install failed

New Contributor
Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/ZOOKEEPER/3.4.5.2.0/package/scripts/zookeeper_client.py", line 81, in <module>
    ZookeeperClient().execute()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 219, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/common-services/ZOOKEEPER/3.4.5.2.0/package/scripts/zookeeper_client.py", line 61, in install
    self.configure(env)
  File "/var/lib/ambari-agent/cache/common-services/ZOOKEEPER/3.4.5.2.0/package/scripts/zookeeper_client.py", line 37, in configure
    zookeeper(type='client')
  File "/usr/lib/python2.6/site-packages/ambari_commons/os_family_impl.py", line 89, in thunk
    return fn(*args, **kwargs)
  File "/var/lib/ambari-agent/cache/common-services/ZOOKEEPER/3.4.5.2.0/package/scripts/zookeeper.py", line 46, in zookeeper
    group=params.user_group
  File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 154, in __init__
    self.env.run()
  File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 158, in run
    self.run_action(resource, action)
  File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 121, in run_action
    provider_action()
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 144, in action_create
    raise Fail("Applying %s failed, looped symbolic links found while resolving %s" % (self.resource, path))
resource_management.core.exceptions.Fail: Applying Directory['/usr/hdp/current/zookeeper-client/conf'] failed, looped symbolic links found while resolving /usr/hdp/current/zookeeper-client/confstdout:   /var/lib/ambari-agent/data/output-779.txt
2018-05-30 19:51:20,662 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf
2018-05-30 19:51:20,664 - Group['hadoop'] {}
2018-05-30 19:51:20,666 - Group['users'] {}
2018-05-30 19:51:20,667 - User['zookeeper'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2018-05-30 19:51:20,670 - User['ams'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2018-05-30 19:51:20,672 - User['ambari-qa'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'users']}
2018-05-30 19:51:20,674 - User['hdfs'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2018-05-30 19:51:20,675 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2018-05-30 19:51:20,678 - 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'] {'not_if': '(test $(id -u ambari-qa) -gt 1000) || (false)'}
2018-05-30 19:51:20,687 - 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'] due to not_if
2018-05-30 19:51:20,688 - Group['hdfs'] {}
2018-05-30 19:51:20,689 - User['hdfs'] {'fetch_nonlocal_groups': True, 'groups': [u'hadoop', u'hdfs']}
2018-05-30 19:51:20,692 - Directory['/etc/hadoop'] {'mode': 0755}
2018-05-30 19:51:20,728 - File['/usr/hdp/current/hadoop-client/conf/hadoop-env.sh'] {'content': InlineTemplate(...), 'owner': 'hdfs', 'group': 'hadoop'}
2018-05-30 19:51:20,729 - Directory['/var/lib/ambari-agent/tmp/hadoop_java_io_tmpdir'] {'owner': 'hdfs', 'group': 'hadoop', 'mode': 0777}
2018-05-30 19:51:20,752 - Repository['HDP-2.4'] {'base_url': 'http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.4.3.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': 'HDP', 'mirror_list': None}
2018-05-30 19:51:20,766 - File['/etc/yum.repos.d/HDP.repo'] {'content': '[HDP-2.4]\nname=HDP-2.4\nbaseurl=http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.4.3.0\n\npath=/\nenabled=1\ngpgcheck=0'}
2018-05-30 19:51:20,767 - Repository['HDP-UTILS-1.1.0.20'] {'base_url': 'http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.20/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': 'HDP-UTILS', 'mirror_list': None}
2018-05-30 19:51:20,776 - File['/etc/yum.repos.d/HDP-UTILS.repo'] {'content': '[HDP-UTILS-1.1.0.20]\nname=HDP-UTILS-1.1.0.20\nbaseurl=http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.20/repos/centos7\n\npath=/\nenabled=1\ngpgcheck=0'}
2018-05-30 19:51:20,776 - Package['unzip'] {}
2018-05-30 19:51:21,047 - Skipping installation of existing package unzip
2018-05-30 19:51:21,047 - Package['curl'] {}
2018-05-30 19:51:21,076 - Skipping installation of existing package curl
2018-05-30 19:51:21,076 - Package['hdp-select'] {}
2018-05-30 19:51:21,103 - Skipping installation of existing package hdp-select
2018-05-30 19:51:21,546 - Package['zookeeper_2_4_*'] {}
2018-05-30 19:51:21,826 - Skipping installation of existing package zookeeper_2_4_*
2018-05-30 19:51:21,827 - Package['zookeeper_2_4_*-server'] {}
2018-05-30 19:51:21,867 - Skipping installation of existing package zookeeper_2_4_*-server
2018-05-30 19:51:21,875 - Directory['/usr/hdp/current/zookeeper-client/conf'] {'owner': 'zookeeper', 'group': 'hadoop', 'recursive': True}
2018-05-30 19:51:21,876 - Creating directory Directory['/usr/hdp/current/zookeeper-client/conf'] since it doesn't exist.









zk-client-install-failed.png
2 REPLIES 2

Error states:

looped symbolic links found while resolving /usr/hdp/current/zookeeper-client/conf

Seems the symlink under /usr/hdp/current/zookeeper-client/conf is not correct.

The symlink should be pointing here:

cd /usr/hdp/current/zookeeper-client/
ls -l 
lrwxrwxrwx. 1 root root     28 May 25 14:31 conf -> /etc/zookeeper/2.6.5.0-292/0 

Make sure your symlink is pointing to the above location on the server/machine where you are trying to install zookeeper client.

HTH

*** If you found this answer addressed your question, please take a moment to login and click the "accept" link on the answer.

Forgot to tag your name @Pavan Kumar check above ^

I also noticed the actual installation of the zookeeper packages is being skipped.

Skipping installation of existing package zookeeper_2_4_*

Perhaps zookeeper packages were installed previously on this box? Would be good to uninstall and install again just in.

; ;