<?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: Hands-on Spark Tutorial: Permission Denied and no such file or directory in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hands-on-Spark-Tutorial-Permission-Denied-and-no-such-file/m-p/100470#M13359</link>
    <description>&lt;P&gt;thanks Neeraj. That worked. Appreciate it.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Dec 2015 10:33:52 GMT</pubDate>
    <dc:creator>snasir</dc:creator>
    <dc:date>2015-12-23T10:33:52Z</dc:date>
    <item>
      <title>Hands-on Spark Tutorial: Permission Denied and no such file or directory</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hands-on-Spark-Tutorial-Permission-Denied-and-no-such-file/m-p/100468#M13357</link>
      <description>&lt;P&gt;
 I was able to download and bring up the sandbox. I also changed the password root user. I am also able navigate to &lt;A href="http://127.0.0.1:8088/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://127.0.0.1:8088/&lt;/A&gt; and see the hadoop cluster. Now I am trying to go through following tutorial:&lt;/P&gt;&lt;P&gt;
 &lt;A href="http://hortonworks.com/blog/hands-on-tour-of-apache-spark/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://hortonworks.com/blog/hands-on-tour-of-apach...&lt;/A&gt;&lt;/P&gt;&lt;P&gt;
 but running in to permissions issues or message like no such file or directory.&lt;/P&gt;&lt;P&gt;
 I was able to run this command and download data:&lt;/P&gt;&lt;PRE&gt;wget &amp;lt;a href="http://en.wikipedia.org/wiki/Hortonworks"&amp;gt;http://en.wikipedia.org/wiki/Hortonworks&amp;lt;/a&amp;gt;&lt;/PRE&gt;&lt;P&gt;but when I run the next step:&lt;/P&gt;&lt;PRE&gt;hadoop fs -put ~/Hortonworks /user/guest/Hortonworks&lt;/PRE&gt;&lt;P&gt;I get following message:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1041-horton1.jpg" style="width: 722px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/23802i03639C659DC93083/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1041-horton1.jpg" alt="1041-horton1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I try to run hadoop fs -ls , I get the message the no such file or directory exists:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1042-horton2.jpg" style="width: 335px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/23803i23965AF98B21561D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1042-horton2.jpg" alt="1042-horton2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I then tried to create the /home/root directory but that failed too:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1043-horton3.jpg" style="width: 724px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/23804iCA646875DDEAA59B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1043-horton3.jpg" alt="1043-horton3.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any thoughts on what may be happening here?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 12:27:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hands-on-Spark-Tutorial-Permission-Denied-and-no-such-file/m-p/100468#M13357</guid>
      <dc:creator>snasir</dc:creator>
      <dc:date>2019-08-19T12:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: Hands-on Spark Tutorial: Permission Denied and no such file or directory</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hands-on-Spark-Tutorial-Permission-Denied-and-no-such-file/m-p/100469#M13358</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1744/snasir.html" nodeid="1744"&gt;@shahab nasir&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Do this&lt;/P&gt;&lt;P&gt;sudo su - hdfs&lt;/P&gt;&lt;P&gt;hdfs dfs -mkdir /user/root&lt;/P&gt;&lt;P&gt;hdfs dfs -chown root:hdfs /user/root&lt;/P&gt;&lt;P&gt;exit&lt;/P&gt;&lt;P&gt;and run hdfs commands&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2015 10:04:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hands-on-Spark-Tutorial-Permission-Denied-and-no-such-file/m-p/100469#M13358</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-12-23T10:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: Hands-on Spark Tutorial: Permission Denied and no such file or directory</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hands-on-Spark-Tutorial-Permission-Denied-and-no-such-file/m-p/100470#M13359</link>
      <description>&lt;P&gt;thanks Neeraj. That worked. Appreciate it.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2015 10:33:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hands-on-Spark-Tutorial-Permission-Denied-and-no-such-file/m-p/100470#M13359</guid>
      <dc:creator>snasir</dc:creator>
      <dc:date>2015-12-23T10:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Hands-on Spark Tutorial: Permission Denied and no such file or directory</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hands-on-Spark-Tutorial-Permission-Denied-and-no-such-file/m-p/100471#M13360</link>
      <description>&lt;P&gt;Specifically for /user/guest/Hortonworks do this:
&lt;/P&gt;&lt;PRE&gt;sudo su -hdfs
hadoop fs -chmod -R 777 /user/guest
exit&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Jan 2016 05:02:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hands-on-Spark-Tutorial-Permission-Denied-and-no-such-file/m-p/100471#M13360</guid>
      <dc:creator>amcbarnett</dc:creator>
      <dc:date>2016-01-01T05:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: Hands-on Spark Tutorial: Permission Denied and no such file or directory</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hands-on-Spark-Tutorial-Permission-Denied-and-no-such-file/m-p/100472#M13361</link>
      <description>&lt;P&gt;In the Sandbox, the /user/guest does not actually exist.

You can create /user/guest/ using the following command:&lt;/P&gt;&lt;PRE&gt;hadoop fs -mkdir /user/guest/&lt;/PRE&gt;&lt;P&gt;Alternatively, you can use /tmp directory:&lt;/P&gt;&lt;PRE&gt;hadoop fs -put ~/Hortonworks /tmp
&lt;/PRE&gt;&lt;P&gt;The tutorial has been updated to use /tmp directory to simplify the flow.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 10:35:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hands-on-Spark-Tutorial-Permission-Denied-and-no-such-file/m-p/100472#M13361</guid>
      <dc:creator>rhryniewicz</dc:creator>
      <dc:date>2016-03-03T10:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: Hands-on Spark Tutorial: Permission Denied and no such file or directory</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hands-on-Spark-Tutorial-Permission-Denied-and-no-such-file/m-p/100473#M13362</link>
      <description>&lt;P&gt;The tutorial needs to be fixed.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 12:59:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hands-on-Spark-Tutorial-Permission-Denied-and-no-such-file/m-p/100473#M13362</guid>
      <dc:creator>sdutta</dc:creator>
      <dc:date>2016-03-03T12:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Hands-on Spark Tutorial: Permission Denied and no such file or directory</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hands-on-Spark-Tutorial-Permission-Denied-and-no-such-file/m-p/100474#M13363</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1744/snasir.html" nodeid="1744"&gt;@shahab nasir&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Best is to use the ambari-qa user. This is special user with super powers &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;su ambari-qa&lt;/P&gt;&lt;P&gt;Overall, please understand the Hadoop security model. Spend some time to understand the user permissions. This is mostly like unix. The service accounts hdfs, yarn etc are service accounts that are part of hadoop group.&lt;/P&gt;&lt;P&gt;Spend some time on the Hadoop HDFS section. This will help your understanding better.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 13:02:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hands-on-Spark-Tutorial-Permission-Denied-and-no-such-file/m-p/100474#M13363</guid>
      <dc:creator>sdutta</dc:creator>
      <dc:date>2016-03-03T13:02:43Z</dc:date>
    </item>
  </channel>
</rss>

