<?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: Last step of Ambari HDP installation fails for ZooKeeper client, on one of five nodes, due to &amp;quot;looped symbolic links&amp;quot; error in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Last-step-of-Ambari-HDP-installation-fails-for-ZooKeeper/m-p/127951#M27042</link>
    <description>&lt;P&gt;Fix is to delete that link manually and recreate it correctly. &lt;/P&gt;&lt;PRE&gt;rm /usr/hdp/current/zookeeper-client/conf
ln -s /etc/zookeeper/2.3.2.0-2950/0 /usr/hdp/current/zookeeper-client/conf&lt;/PRE&gt;</description>
    <pubDate>Tue, 03 May 2016 20:38:55 GMT</pubDate>
    <dc:creator>bsaini</dc:creator>
    <dc:date>2016-05-03T20:38:55Z</dc:date>
    <item>
      <title>Last step of Ambari HDP installation fails for ZooKeeper client, on one of five nodes, due to "looped symbolic links" error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Last-step-of-Ambari-HDP-installation-fails-for-ZooKeeper/m-p/127949#M27040</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3519/rohitsureka.html" nodeid="3519" target="_blank"&gt;@Rohit Sureka&lt;/A&gt; &lt;A rel="user" href="https://community.cloudera.com/users/177/pminovic.html" nodeid="177" target="_blank"&gt;@Predrag Minovic&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I'm trying to install a 5 node hadoop cluster with HDP 2.3.4.7 on Ubuntu 14.04 using Ambari 2.2.0.0. During the 10th step of the Ambari "Cluster Install Wizard" the installation of the ZooKeeper client fails on one of the five nodes with the following stderr:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;&lt;EM&gt;"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/conf"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3956-overview-failure.png" style="width: 841px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22555i15BBD6D15FD3E70D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="3956-overview-failure.png" alt="3956-overview-failure.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3930-1shr0.png" style="width: 795px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22556iBC23921021A844FA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="3930-1shr0.png" alt="3930-1shr0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;During the earlier steps of the "Cluster Install Wizard" and prior to this error, I removed the packages "zlibc" and "xclip" from two hosts, one of them now failing the ZooKeeper installation, in oder to comply with warnings telling me to do so. But "apt-get remove zlibc" and "apt-get remove xclip" also removed the Ambari agents on these hosts. Therefore the installation process didn't finish the first time because the heartbeat of these to hosts got lost during the installation. So I reinstalled the Ambari agents on these hosts but ever since I get the error mentioned above.&lt;/P&gt;&lt;P&gt;I hope someone can give me a hint or a solution. Thanks a lot.&lt;/P&gt;&lt;P&gt;The full stderr reads like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;&lt;EM&gt;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 &amp;lt;module&amp;gt;
  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/conf&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 09:54:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Last-step-of-Ambari-HDP-installation-fails-for-ZooKeeper/m-p/127949#M27040</guid>
      <dc:creator>felix_karabanov</dc:creator>
      <dc:date>2019-08-19T09:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Last step of Ambari HDP installation fails for ZooKeeper client, on one of five nodes, due to "looped symbolic links" error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Last-step-of-Ambari-HDP-installation-fails-for-ZooKeeper/m-p/127950#M27041</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10164/felixkarabanov.html" nodeid="10164"&gt;@Felix Karabanov&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;I recently experience something similar during an upgrade. I am not sure what the root cause within the software but here is what Ambari is expecting and work around that worked for me - &lt;/P&gt;&lt;P&gt;Correct setup - &lt;/P&gt;&lt;P&gt;The configuration directories are expected to be setup this way - &lt;/P&gt;&lt;P&gt;Starting with /etc/zookeeper/conf&lt;/P&gt;&lt;PRE&gt;[root@sandbox zookeeper]# ll /etc/zookeeper/conf
lrwxrwxrwx 1 root root 38 2015-10-27 14:31 /etc/zookeeper/conf -&amp;gt; /usr/hdp/current/zookeeper-client/conf
[root@sandbox zookeeper]# ll /usr/hdp/current/zookeeper-client/conf
lrwxrwxrwx 1 root root 29 2015-10-27 14:31 /usr/hdp/current/zookeeper-client/conf -&amp;gt; /etc/zookeeper/2.3.2.0-2950/0
&lt;/PRE&gt;&lt;P&gt;In your case, the link /usr/hdp/current/zookeeper-client/conf probably points back to /etc/zookeeper/conf, which causes the issue. &lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2016 20:27:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Last-step-of-Ambari-HDP-installation-fails-for-ZooKeeper/m-p/127950#M27041</guid>
      <dc:creator>bsaini</dc:creator>
      <dc:date>2016-05-03T20:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Last step of Ambari HDP installation fails for ZooKeeper client, on one of five nodes, due to "looped symbolic links" error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Last-step-of-Ambari-HDP-installation-fails-for-ZooKeeper/m-p/127951#M27042</link>
      <description>&lt;P&gt;Fix is to delete that link manually and recreate it correctly. &lt;/P&gt;&lt;PRE&gt;rm /usr/hdp/current/zookeeper-client/conf
ln -s /etc/zookeeper/2.3.2.0-2950/0 /usr/hdp/current/zookeeper-client/conf&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 May 2016 20:38:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Last-step-of-Ambari-HDP-installation-fails-for-ZooKeeper/m-p/127951#M27042</guid>
      <dc:creator>bsaini</dc:creator>
      <dc:date>2016-05-03T20:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: Last step of Ambari HDP installation fails for ZooKeeper client, on one of five nodes, due to "looped symbolic links" error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Last-step-of-Ambari-HDP-installation-fails-for-ZooKeeper/m-p/127952#M27043</link>
      <description>&lt;P&gt;Was there an earlier install of HDP either successful or unsuccessful? Its important to cleanup failed installs or clean up existing installs for reinstalls. After host registration, ambari gives a good estimate of issues that can effect your install. &lt;/P&gt;&lt;P&gt;You can take a look at &lt;A href="https://community.hortonworks.com/questions/1110/how-to-completely-remove-uninstall-ambari-and-hdp.html" target="_blank"&gt;https://community.hortonworks.com/questions/1110/how-to-completely-remove-uninstall-ambari-and-hdp.html&lt;/A&gt; though this is geared towards centos. &lt;/P&gt;&lt;P&gt;For this specific issue, you can unlink /usr/hdp/current/zookeeper-client/ and retry. This should take care of it.&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2016 20:43:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Last-step-of-Ambari-HDP-installation-fails-for-ZooKeeper/m-p/127952#M27043</guid>
      <dc:creator>ravi1</dc:creator>
      <dc:date>2016-05-03T20:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Last step of Ambari HDP installation fails for ZooKeeper client, on one of five nodes, due to "looped symbolic links" error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Last-step-of-Ambari-HDP-installation-fails-for-ZooKeeper/m-p/127953#M27044</link>
      <description>&lt;P&gt;(+1) Hi Felix, also check that /usr/hdp/current/zookeeper-client is pointing to /usr/hdp/2.3.2.0-2950/zookeeper, and that directory /etc/zookeeper/2.3.3.0-2950/0 exists, if not create it. ZK config files like zoo.cfg and zookeeper-env.sh will be stored there.&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2016 21:02:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Last-step-of-Ambari-HDP-installation-fails-for-ZooKeeper/m-p/127953#M27044</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2016-05-03T21:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Last step of Ambari HDP installation fails for ZooKeeper client, on one of five nodes, due to "looped symbolic links" error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Last-step-of-Ambari-HDP-installation-fails-for-ZooKeeper/m-p/127954#M27045</link>
      <description>&lt;P&gt;Thank you &lt;A rel="user" href="https://community.cloudera.com/users/191/bsaini.html" nodeid="191"&gt;@bsaini&lt;/A&gt; it worked great.&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2016 09:53:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Last-step-of-Ambari-HDP-installation-fails-for-ZooKeeper/m-p/127954#M27045</guid>
      <dc:creator>felix_karabanov</dc:creator>
      <dc:date>2016-05-04T09:53:34Z</dc:date>
    </item>
  </channel>
</rss>

