<?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 CDH upgrade alternatives link not updated in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/CDH-upgrade-alternatives-link-not-updated/m-p/50972#M1165</link>
    <description>&lt;P&gt;We upgraded our clusters from 5.5.2 to 5.5.5 a while ago. We've since identified a few nodes where the alternatives are still referencing the 5.5.2 parcel.&lt;/P&gt;&lt;PRE&gt;root@use542ytb9:~ ( use542ytb9 )
13:15:15 $ which hbase
/usr/bin/which: no hbase in (/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/sbin:/usr/sbin:/usr/local/sbin:/root/bin)
root@use542ytb9:~ ( use542ytb9 )&lt;/PRE&gt;&lt;PRE&gt;root@use542ytb9:~ ( use542ytb9 )
13:15:18 $ ls /usr/bin/hbase
/usr/bin/hbase
root@use542ytb9:~ ( use542ytb9 )
13:15:24 $ ll /usr/bin/hbase
lrwxrwxrwx 1 root root 23 May 16  2016 /usr/bin/hbase -&amp;gt; /etc/alternatives/hbase
root@use542ytb9:~ ( use542ytb9 )
13:15:28 $ ll /etc/alternatives/hbase
lrwxrwxrwx 1 root root 63 May 16  2016 /etc/alternatives/hbase -&amp;gt; /opt/cloudera/parcels/CDH-5.5.2-1.cdh5.5.2.p1426.1277/bin/hbase
root@use542ytb9:~ ( use542ytb9 )
13:15:30 $ ls /opt/cloudera/parcels/CDH-5.5.2-1.cdh5.5.2.p1426.1277/bin/hbase
ls: cannot access /opt/cloudera/parcels/CDH-5.5.2-1.cdh5.5.2.p1426.1277/bin/hbase: No such file or directory
root@use542ytb9:~ ( use542ytb9 )&lt;/PRE&gt;&lt;P&gt;We've cycled the cm agent, done full decommissions and recommisisons, rebooted the nodes, and deployed client config.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since we've identified 3 nodes, we're assuming there's others as well. The hadoop services still run on these nodes, but we're unable to run hdfs, hbase, or yarn commands, which has also caused several mapreduce jobs to fail.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a good way to repoint these alternatives to the new parcel?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Feb 2017 19:38:46 GMT</pubDate>
    <dc:creator>donigrubbs</dc:creator>
    <dc:date>2017-02-15T19:38:46Z</dc:date>
    <item>
      <title>CDH upgrade alternatives link not updated</title>
      <link>https://community.cloudera.com/t5/Support-Questions/CDH-upgrade-alternatives-link-not-updated/m-p/50972#M1165</link>
      <description>&lt;P&gt;We upgraded our clusters from 5.5.2 to 5.5.5 a while ago. We've since identified a few nodes where the alternatives are still referencing the 5.5.2 parcel.&lt;/P&gt;&lt;PRE&gt;root@use542ytb9:~ ( use542ytb9 )
13:15:15 $ which hbase
/usr/bin/which: no hbase in (/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/sbin:/usr/sbin:/usr/local/sbin:/root/bin)
root@use542ytb9:~ ( use542ytb9 )&lt;/PRE&gt;&lt;PRE&gt;root@use542ytb9:~ ( use542ytb9 )
13:15:18 $ ls /usr/bin/hbase
/usr/bin/hbase
root@use542ytb9:~ ( use542ytb9 )
13:15:24 $ ll /usr/bin/hbase
lrwxrwxrwx 1 root root 23 May 16  2016 /usr/bin/hbase -&amp;gt; /etc/alternatives/hbase
root@use542ytb9:~ ( use542ytb9 )
13:15:28 $ ll /etc/alternatives/hbase
lrwxrwxrwx 1 root root 63 May 16  2016 /etc/alternatives/hbase -&amp;gt; /opt/cloudera/parcels/CDH-5.5.2-1.cdh5.5.2.p1426.1277/bin/hbase
root@use542ytb9:~ ( use542ytb9 )
13:15:30 $ ls /opt/cloudera/parcels/CDH-5.5.2-1.cdh5.5.2.p1426.1277/bin/hbase
ls: cannot access /opt/cloudera/parcels/CDH-5.5.2-1.cdh5.5.2.p1426.1277/bin/hbase: No such file or directory
root@use542ytb9:~ ( use542ytb9 )&lt;/PRE&gt;&lt;P&gt;We've cycled the cm agent, done full decommissions and recommisisons, rebooted the nodes, and deployed client config.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since we've identified 3 nodes, we're assuming there's others as well. The hadoop services still run on these nodes, but we're unable to run hdfs, hbase, or yarn commands, which has also caused several mapreduce jobs to fail.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a good way to repoint these alternatives to the new parcel?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 19:38:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/CDH-upgrade-alternatives-link-not-updated/m-p/50972#M1165</guid>
      <dc:creator>donigrubbs</dc:creator>
      <dc:date>2017-02-15T19:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: CDH upgrade alternatives link not updated</title>
      <link>https://community.cloudera.com/t5/Support-Questions/CDH-upgrade-alternatives-link-not-updated/m-p/50977#M1166</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/6526"&gt;@donigrubbs&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which link that you have followed for the upgrade?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.cloudera.com/documentation/enterprise/release-notes/topics/cm_rn_new_changed_features.html#concept_o5s_mfy_sm" target="_blank"&gt;https://www.cloudera.com/documentation/enterprise/release-notes/topics/cm_rn_new_changed_features.html#concept_o5s_mfy_sm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As per the above link, there is no intermediate version between 5.5.4 and 5.6.0 (But you are referring to 5.5.5 ?)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://www.cloudera.com/documentation/enterprise/release-notes/topics/cm_rn_new_changed_features.html#concept_hsp_fnk_p5" target="_blank"&gt;What's New in Cloudera Manager 5.6.0&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://www.cloudera.com/documentation/enterprise/release-notes/topics/cm_rn_new_changed_features.html#concept_y1m_svm_xv" target="_blank"&gt;What's New in Cloudera Manager 5.5.4&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://www.cloudera.com/documentation/enterprise/release-notes/topics/cm_rn_new_changed_features.html#concept_ebq_tvl_1v" target="_blank"&gt;What's New in Cloudera Manager 5.5.3&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://www.cloudera.com/documentation/enterprise/release-notes/topics/cm_rn_new_changed_features.html#concept_xb3_3ny_w5" target="_blank"&gt;What's New in Cloudera Manager 5.5.2&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 15 Feb 2017 20:51:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/CDH-upgrade-alternatives-link-not-updated/m-p/50977#M1166</guid>
      <dc:creator>saranvisa</dc:creator>
      <dc:date>2017-02-15T20:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: CDH upgrade alternatives link not updated</title>
      <link>https://community.cloudera.com/t5/Support-Questions/CDH-upgrade-alternatives-link-not-updated/m-p/50979#M1167</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/18441"&gt;@saranvisa&lt;/a&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.cloudera.com/documentation/enterprise/release-notes/topics/cdh_rn_fixed_in_55.html#fixed_issues_555" target="_blank"&gt;https://www.cloudera.com/documentation/enterprise/release-notes/topics/cdh_rn_fixed_in_55.html#fixed_issues_555&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.cloudera.com/documentation/enterprise/release-notes/topics/cdh_vd_cdh_download_55.html#cdh_555" target="_blank"&gt;https://www.cloudera.com/documentation/enterprise/release-notes/topics/cdh_vd_cdh_download_55.html#cdh_555&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 21:01:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/CDH-upgrade-alternatives-link-not-updated/m-p/50979#M1167</guid>
      <dc:creator>donigrubbs</dc:creator>
      <dc:date>2017-02-15T21:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: CDH upgrade alternatives link not updated</title>
      <link>https://community.cloudera.com/t5/Support-Questions/CDH-upgrade-alternatives-link-not-updated/m-p/52114#M1168</link>
      <description>There seems to be issues around update-alternatives command. Which is often caused by a broken alternatives link under /etc/alternatives/ or a bad (zero length, see [0]) alternatives configuration file under /var/lib/alternatives, and based on your description it appears to be the former. 

The root cause is that Cloudera Manager Agents relies in the OS provided binary of update-alternatives, however the binary doesn't relay feedback on bad entries or problems, therefore we have to resort to manually rectifying issues like these. We have an internal improvement JIRA OPSAPS-39415 to explore options on how to make alternatives updates during upgrades more resilient. 

To recover from the issue, you would need to remove CDH related entries from alternatives configuration files.


[0] &lt;A href="https://bugzilla.redhat.com/show_bug.cgi?id=1016725" target="_blank"&gt;https://bugzilla.redhat.com/show_bug.cgi?id=1016725&lt;/A&gt;

= = = = = = = 
# Stop CM agent service on node 
service cloudera-scm-agent stop 
# Delete hadoop /etc/alternatives - below will displays the rm command you'll need to issue. 
ls -l /etc/alternatives/ | grep "\/opt\/cloudera" | awk {'print $9'} | while read m; do if [[ -e /var/lib/alternatives/${m} ]]; then echo "rm -fv /var/lib/alternatives/${m}"; fi; echo "rm -fv /etc/alternatives/${m}"; done 
# Remove 0 byte /var/lib/alternatives 
cd /var/lib/alternatives 
find . -size 0 | awk '{print $1 " "}' | tr -d '\n' 
# The above command will give you a multi-line output of all 0 byte files in /var/lib/alternatives. Copy all the files, and put into the rm -f 
rm -f &lt;FILES from="" above="" command=""&gt; 
# Start CM agent 
service cloudera-scm-agent start 
= = = = = = =&lt;/FILES&gt;</description>
      <pubDate>Mon, 13 Mar 2017 14:27:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/CDH-upgrade-alternatives-link-not-updated/m-p/52114#M1168</guid>
      <dc:creator>michalis</dc:creator>
      <dc:date>2017-03-13T14:27:37Z</dc:date>
    </item>
  </channel>
</rss>

