<?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: Incorrect symlinks being created by cloudera-scm-agent in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Incorrect-symlinks-being-created-by-cloudera-scm-agent/m-p/25606#M2792</link>
    <description>&lt;P&gt;I've wrote a little script to&amp;nbsp;resolve the issue.&lt;/P&gt;&lt;P&gt;although the script is a workaround and I still need to find the proper solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;details - here -&amp;nbsp;&lt;A target="_blank" href="https://linuxlabrat.wordpress.com/2015/03/16/removing-alternatives-of-old-cdh-parcels/"&gt;https://linuxlabrat.wordpress.com/2015/03/16/removing-alternatives-of-old-cdh-parcels/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Mar 2015 11:01:48 GMT</pubDate>
    <dc:creator>doronve</dc:creator>
    <dc:date>2015-03-16T11:01:48Z</dc:date>
    <item>
      <title>Incorrect symlinks being created by cloudera-scm-agent</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Incorrect-symlinks-being-created-by-cloudera-scm-agent/m-p/18092#M2789</link>
      <description>&lt;P&gt;I am attempting to reinstall my cluster and no matter what I do&amp;nbsp;the installation is setting the /etc/alternatives binary symlinks&amp;nbsp;to an old/invalid parcels version.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I followed&amp;nbsp;&lt;A target="_blank" href="http://www.cloudera.com/content/cloudera-content/cloudera-docs/CM5/latest/Cloudera-Manager-Installation-Guide/cm5ig_uninstall_cm.html"&gt;http://www.cloudera.com/content/cloudera-content/cloudera-docs/CM5/latest/Cloudera-Manager-Installation-Guide/cm5ig_uninstall_cm.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;During the reinstallation process the parcels are distributed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[parcels]$ ls -lsa /opt/cloudera/parcels&lt;BR /&gt;total 12&lt;BR /&gt;4 drwxr-xr-x 3 root root 4096 Sep 2 22:40 .&lt;BR /&gt;4 drwxr-xr-x 4 root root 4096 Sep 2 22:33 ..&lt;BR /&gt;0 lrwxrwxrwx 1 root root 25 Sep 2 22:40 CDH -&amp;gt; CDH-5.1.2-1.cdh5.1.2.p0.3&lt;BR /&gt;4 drwxrwxr-x 10 root root 4096 Aug 26 04:03 CDH-5.1.2-1.cdh5.1.2.p0.3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the cloudera-scm-agent is creating symlinks in /etc/alternatives to a different parcels version (&lt;SPAN&gt;CDH-5.1.0-1.cdh5.1.0.p0.53)&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[parcels]$ ls -lsa /etc/alternatives | grep cloudera&lt;BR /&gt;4 lrwxrwxrwx 1 root root 63 Sep 2 22:40 avro-tools -&amp;gt; /opt/cloudera/parcels/CDH-5.1.0-1.cdh5.1.0.p0.53/bin/avro-tools&lt;BR /&gt;4 lrwxrwxrwx 1 root root 60 Sep 2 22:40 beeline -&amp;gt; /opt/cloudera/parcels/CDH-5.1.0-1.cdh5.1.0.p0.53/bin/beeline&lt;BR /&gt;4 lrwxrwxrwx 1 root root 61 Sep 2 22:40 catalogd -&amp;gt; /opt/cloudera/parcels/CDH-5.1.0-1.cdh5.1.0.p0.53/bin/catalogd&lt;BR /&gt;0 lrwxrwxrwx 1 root root 59 Sep 2 22:40 cli_mt -&amp;gt; /opt/cloudera/parcels/CDH-5.1.0-1.cdh5.1.0.p0.53/bin/cli_mt&lt;BR /&gt;0 lrwxrwxrwx 1 root root 59 Sep 2 22:40 cli_st -&amp;gt; /opt/cloudera/parcels/CDH-5.1.0-1.cdh5.1.0.p0.53/bin/cli_st&lt;BR /&gt;4 lrwxrwxrwx 1 root root 61 Sep 2 22:40 flume-ng -&amp;gt; /opt/cloudera/parcels/CDH-5.1.0-1.cdh5.1.0.p0.53/bin/flume-ng&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where in the HECK is this information stored either on the CM server or on the agents?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's pretty important for a user to be able to remove software completely and reinstall without having to completely reinstall the operating system, which is what point I'm at right now.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:06:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Incorrect-symlinks-being-created-by-cloudera-scm-agent/m-p/18092#M2789</guid>
      <dc:creator>mshirley</dc:creator>
      <dc:date>2022-09-16T09:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect symlinks being created by cloudera-scm-agent</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Incorrect-symlinks-being-created-by-cloudera-scm-agent/m-p/18098#M2790</link>
      <description>Hi mshirley,&lt;BR /&gt;No, don't reinstall your OS, this should be a fixable problem.&lt;BR /&gt;&lt;BR /&gt;Parcel symlinks are usually created when you activate or deactivate the&lt;BR /&gt;parcel. The default priority, however, is intentionally kept low. It's&lt;BR /&gt;possible at some point, an alternative got created (manually by someone, or&lt;BR /&gt;a by bug) at a higher priority, or, deactivation for a previous parcel was&lt;BR /&gt;not done properly which may have left a lingering alternative.&lt;BR /&gt;&lt;BR /&gt;If I were you, I'd ensure all deactivate all CDH parcels. Then, I'd look at&lt;BR /&gt;the alternatives and see if there is a symlink from&lt;BR /&gt;/opt/cloudera/parcels/CDH -&amp;gt; /opt/cloudera/parcels/&lt;BR /&gt;exists. If so, it should NOT exist. You should go ahead, and deactivate&lt;BR /&gt;that alternative. Ensure no such alternatives (and hence symlinks exist).&lt;BR /&gt;Once you have done that, activate the parcel that you want via the CM UI.&lt;BR /&gt;&lt;BR /&gt;If you run into a similar issue again, please do provide the steps you&lt;BR /&gt;undertook to reproduce the situation.&lt;BR /&gt;&lt;BR /&gt;Sorry about the inconvenience.&lt;BR /&gt;&lt;BR /&gt;Mark&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Sep 2014 23:40:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Incorrect-symlinks-being-created-by-cloudera-scm-agent/m-p/18098#M2790</guid>
      <dc:creator>mgrover</dc:creator>
      <dc:date>2014-09-02T23:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect symlinks being created by cloudera-scm-agent</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Incorrect-symlinks-being-created-by-cloudera-scm-agent/m-p/18154#M2791</link>
      <description>&lt;P&gt;I have found the solution to the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cloudera-scm-agent runs a tool called /usr/lib64/cmf/service/common/alternatives.sh to generate /etc/alternatives and symlinks to /usr/bin/*. &amp;nbsp;This bash script executes update-alternatives based on the PARCELS_DIR and PARCEL_DIRNAME variables. There are&amp;nbsp;files in /var/lib/alternatives/ which seem to be used as overrides for the update-alternatives tool. &amp;nbsp;Regardless of what you give update-alternatives, if there is a file in /var/lib/alternatives for that same alternative name it will use the information from the /var/lib/alternatives file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For some reason the /var/lib/alternatives files for cloudera have two entries in them, one for the old parcel and one for the new parcel. &amp;nbsp;This may have happened by reinstalling without deactivating the old cluster/parcel first.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# cat /var/lib/alternatives/sqoop&lt;BR /&gt;auto&lt;BR /&gt;/usr/bin/sqoop&lt;/P&gt;&lt;P&gt;/opt/cloudera/parcels/CDH-5.1.0-1.cdh5.1.0.p0.53/bin/sqoop&lt;BR /&gt;10&lt;BR /&gt;/opt/cloudera/parcels/CDH-5.1.2-1.cdh5.1.2.p0.3/bin/sqoop&lt;BR /&gt;10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I remove the /var/lib/alternatives/sqoop-import file and restart cloudera-scm-agent the proper symlink is created.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# ls -lsa /etc/alternatives/sqoop-import&lt;BR /&gt;4 lrwxrwxrwx 1 root root 64 Sep 3 19:00 /etc/alternatives/sqoop-import -&amp;gt; /opt/cloudera/parcels/CDH-5.1.2-1.cdh5.1.2.p0.3/bin/sqoop-import&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, in closing, it may be neccessary to remove all cloudera related /var/lib/alternatives/ files after a botched install if you do not deactivate the parcel prior to reinstall.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# grep -l cloudera /var/lib/alternatives/*&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2014 19:27:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Incorrect-symlinks-being-created-by-cloudera-scm-agent/m-p/18154#M2791</guid>
      <dc:creator>mshirley</dc:creator>
      <dc:date>2014-09-03T19:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect symlinks being created by cloudera-scm-agent</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Incorrect-symlinks-being-created-by-cloudera-scm-agent/m-p/25606#M2792</link>
      <description>&lt;P&gt;I've wrote a little script to&amp;nbsp;resolve the issue.&lt;/P&gt;&lt;P&gt;although the script is a workaround and I still need to find the proper solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;details - here -&amp;nbsp;&lt;A target="_blank" href="https://linuxlabrat.wordpress.com/2015/03/16/removing-alternatives-of-old-cdh-parcels/"&gt;https://linuxlabrat.wordpress.com/2015/03/16/removing-alternatives-of-old-cdh-parcels/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2015 11:01:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Incorrect-symlinks-being-created-by-cloudera-scm-agent/m-p/25606#M2792</guid>
      <dc:creator>doronve</dc:creator>
      <dc:date>2015-03-16T11:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect symlinks being created by cloudera-scm-agent</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Incorrect-symlinks-being-created-by-cloudera-scm-agent/m-p/25735#M2793</link>
      <description>&lt;P&gt;We are facing a similar problem of missing Symlinks. We have tried all the solutions mentioned in this thread but to no avail.&lt;/P&gt;&lt;P&gt;We are on CDH5.3.1, Cloudera Manager 5.3.2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"ls -lsa /etc/alternatives | grep hadoop" shows a only single entry hadoop-conf and it points to /etc/hadoop/conf.cloudera.yarn&lt;/P&gt;&lt;P&gt;There are no other entries for hive or hbase or sqoop or even hadoop!&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are no entries in /var/lib/alternatives.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As suggested, we stopped the cluster, did a "sudo service cloudera-scm-agent restart" but the symlinks have not been created.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions what is wrong and what needs to be done?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yogesh&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2015 07:21:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Incorrect-symlinks-being-created-by-cloudera-scm-agent/m-p/25735#M2793</guid>
      <dc:creator>YogeshSKulkarni</dc:creator>
      <dc:date>2015-03-20T07:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect symlinks being created by cloudera-scm-agent</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Incorrect-symlinks-being-created-by-cloudera-scm-agent/m-p/25832#M2794</link>
      <description>&lt;P&gt;With nothing working and no help from anywhere, we finally formatted the Namenode and re-installed Cloudera Manager and CDH 5.3.&lt;/P&gt;&lt;P&gt;The symlinks have been created and the command "hadoop fs -ls" seems to work from the command prompt from any folder now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't think this is the right way to address the problem so I'd still look for inputs from anyone.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yogesh&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2015 14:44:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Incorrect-symlinks-being-created-by-cloudera-scm-agent/m-p/25832#M2794</guid>
      <dc:creator>YogeshSKulkarni</dc:creator>
      <dc:date>2015-03-24T14:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect symlinks being created by cloudera-scm-agent</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Incorrect-symlinks-being-created-by-cloudera-scm-agent/m-p/25849#M2795</link>
      <description>&lt;P&gt;You are correct, the steps you took shouldn't have been neccessary but it sounds like my original issue was slightly different than yours.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Were you able to see anything in the cloudera-scm-agent logs after the restart that might have pointed to an issue creating the symlinks?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should have seen things like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[03/Sep/2014 00:06:23 +0000] 21109 Thread-13 parcel_cache INFO Checking checksum of parcel CDH-5.1.2-1.cdh5.1.2.p0.3-el6.parcel...&lt;BR /&gt;[03/Sep/2014 00:06:28 +0000] 21109 Thread-13 parcel_cache INFO Unpacking /opt/cloudera/parcel-cache/CDH-5.1.2-1.cdh5.1.2.p0.3-el6.parcel into /opt/cloudera/parcels&lt;BR /&gt;[03/Sep/2014 00:06:56 +0000] 21109 MainThread parcel INFO Loading parcel manifest for: CDH-5.1.2-1.cdh5.1.2.p0.3&lt;BR /&gt;[03/Sep/2014 00:06:56 +0000] 21109 MainThread parcel INFO Ensuring users/groups exist for new parcel CDH-5.1.2-1.cdh5.1.2.p0.3.&lt;/P&gt;&lt;P&gt;...snip...&lt;/P&gt;&lt;P&gt;[03/Sep/2014 00:06:57 +0000] 21109 MainThread parcel INFO Ensuring correct file permissions for new parcel CDH-5.1.2-1.cdh5.1.2.p0.3.&lt;/P&gt;&lt;P&gt;...snip...&lt;/P&gt;&lt;P&gt;[03/Sep/2014 00:07:15 +0000] 21109 MainThread parcel INFO Activating system symlinks for parcel CDH-5.1.2-1.cdh5.1.2.p0.3&lt;BR /&gt;[03/Sep/2014 00:07:15 +0000] 21109 MainThread parcel INFO Ensuring alternatives entries are activated for parcel CDH-5.1.2-1.cdh5.1.2.p0.3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What was the status of your /opt/cloudera/parcels directory? &amp;nbsp;Had you just recently changed to a new version? &amp;nbsp;Did you deactivate the old parcel before activating the new&amp;nbsp;parcel?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry I didn't respond earlier to prevent you from having to reinstall.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2015 19:55:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Incorrect-symlinks-being-created-by-cloudera-scm-agent/m-p/25849#M2795</guid>
      <dc:creator>mshirley</dc:creator>
      <dc:date>2015-03-24T19:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect symlinks being created by cloudera-scm-agent</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Incorrect-symlinks-being-created-by-cloudera-scm-agent/m-p/25862#M2796</link>
      <description>&lt;P&gt;Not an issue Mshirley, many thanks for your comments.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To be honest, I didn't check the cloudera-scm-agent logs after the restart so cannot say whether there were any errors reported. I'll keep that in mind next time onwards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, /opt/cloudera/parcels directory contained 2 files - one was named CDH (a link to the CDH5.3 directory, I suppose) and the actual CDH5.3xxxx directory (sorry, cannot recollect the exact name) which contained the /lib /bin and several other parcel directories . And yes, we did try deactivating the old parcel before downloading the new one. Unfortunately, nothing worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Around the same time, we also did a reboot and noticed that one of the nodes did not come up. As a result, we were forced to do the re-installation again.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2015 06:43:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Incorrect-symlinks-being-created-by-cloudera-scm-agent/m-p/25862#M2796</guid>
      <dc:creator>YogeshSKulkarni</dc:creator>
      <dc:date>2015-03-25T06:43:55Z</dc:date>
    </item>
  </channel>
</rss>

