<?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 how to recover after master /user/bin was deleted? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/how-to-recover-after-master-user-bin-was-deleted/m-p/280551#M208915</link>
    <description>&lt;P&gt;Hi, guys&lt;/P&gt;
&lt;P&gt;My master's /usr/bin was deleted, and i have copy other slave's /usr/bin to the master.&lt;/P&gt;
&lt;P&gt;but when i type spark-shell, it occur this error:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="spark-shell error" style="width: 785px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/24957iA778D53EFB7EFB07/image-size/large?v=v2&amp;amp;px=999" role="button" title="spark-shell error.png" alt="spark-shell error" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;spark-shell error&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;but when i type&amp;nbsp;/opt/cloudera/parcels/CDH/bin/spark-shell, it works fine.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Seems the commands in /user/bin directory should be soft link to/ opt/cloudera/parcels/CDH ,&amp;nbsp;is there any way to recover it?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;thanks a lot.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Oct 2019 10:36:06 GMT</pubDate>
    <dc:creator>cdfuser</dc:creator>
    <dc:date>2019-10-18T10:36:06Z</dc:date>
    <item>
      <title>how to recover after master /user/bin was deleted?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-recover-after-master-user-bin-was-deleted/m-p/280551#M208915</link>
      <description>&lt;P&gt;Hi, guys&lt;/P&gt;
&lt;P&gt;My master's /usr/bin was deleted, and i have copy other slave's /usr/bin to the master.&lt;/P&gt;
&lt;P&gt;but when i type spark-shell, it occur this error:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="spark-shell error" style="width: 785px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/24957iA778D53EFB7EFB07/image-size/large?v=v2&amp;amp;px=999" role="button" title="spark-shell error.png" alt="spark-shell error" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;spark-shell error&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;but when i type&amp;nbsp;/opt/cloudera/parcels/CDH/bin/spark-shell, it works fine.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Seems the commands in /user/bin directory should be soft link to/ opt/cloudera/parcels/CDH ,&amp;nbsp;is there any way to recover it?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;thanks a lot.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 10:36:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-recover-after-master-user-bin-was-deleted/m-p/280551#M208915</guid>
      <dc:creator>cdfuser</dc:creator>
      <dc:date>2019-10-18T10:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to recover after master /user/bin was deleted?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-recover-after-master-user-bin-was-deleted/m-p/280552#M208916</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; I would suggest to do the following:-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1. Login to slave's /usr/bin.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2. Type the following command to check to which utility the spark-shell is linked.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN class="s1"&gt;ls -al spark*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; It will print the following&amp;nbsp; depending on your configuration.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;lrwxrwxrwx 1 root root 29 Oct 18 01:03 &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;spark-shell&lt;/SPAN&gt;&lt;SPAN class="s1"&gt; -&amp;gt; &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;/etc/alternatives/spark-shell&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;lrwxrwxrwx 1 root root 30 Sep 30 03:11 &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;spark-submit&lt;/SPAN&gt;&lt;SPAN class="s1"&gt; -&amp;gt; &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;/etc/alternatives/spark-submit&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;lrwxrwxrwx 1 root root 30 Sep 30 03:11 &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;spark2-shell&lt;/SPAN&gt;&lt;SPAN class="s1"&gt; -&amp;gt; &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;/etc/alternatives/spark2-shell&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;lrwxrwxrwx 1 root root 31 Sep 30 03:11 &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;spark2-submit&lt;/SPAN&gt;&lt;SPAN class="s1"&gt; -&amp;gt; &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;/etc/alternatives/spark2-submit&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s3"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s3"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3. Login to master shell /usr/bin:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s3"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;ln -s&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;/etc/alternatives/spark-shell spark-shell&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; The above command will create a link to the executable. Change the path "/etc/alternatives/spark-shell" as per your slave's configuration&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Please remember to login as root user.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Let me know if it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ganesh&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 08:18:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-recover-after-master-user-bin-was-deleted/m-p/280552#M208916</guid>
      <dc:creator>CLDR</dc:creator>
      <dc:date>2019-10-18T08:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to recover after master /user/bin was deleted?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-recover-after-master-user-bin-was-deleted/m-p/280558#M208921</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/29264"&gt;@CLDR&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your solution works!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have try the mehod:&lt;/P&gt;&lt;P&gt;1. tar the slave's /usr/bin which must contain the soft link.&lt;/P&gt;&lt;P&gt;2. copy tar.gz to the master,&amp;nbsp; and it works fine!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 08:50:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-recover-after-master-user-bin-was-deleted/m-p/280558#M208921</guid>
      <dc:creator>cdfuser</dc:creator>
      <dc:date>2019-10-18T08:50:56Z</dc:date>
    </item>
  </channel>
</rss>

