<?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: mkdir: Permission denied: user=root, access=WRITE, inode=&amp;quot;/mp2/links&amp;quot;:hdfs:hdfs:drwxr-xr-x in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/mkdir-Permission-denied-user-root-access-WRITE-inode-quot/m-p/103226#M15404</link>
    <description>&lt;P&gt;Awesome, good to hear. Good Luck with your Coursera course &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jan 2016 13:29:55 GMT</pubDate>
    <dc:creator>jstraub</dc:creator>
    <dc:date>2016-01-20T13:29:55Z</dc:date>
    <item>
      <title>mkdir: Permission denied: user=root, access=WRITE, inode="/mp2/links":hdfs:hdfs:drwxr-xr-x</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/mkdir-Permission-denied-user-root-access-WRITE-inode-quot/m-p/103221#M15399</link>
      <description>&lt;P&gt;Hi,
I got these errors when running any scripts of tutorials for Hortonworks sandbox HDP 2.3.2 on linux:&lt;/P&gt;&lt;PRE&gt;[root@sandbox cloudapp-mp2]# bash start.sh
Coursera User ID: 15677561
User Id: 15677561
Dataset: 15
Dataset Patch: 4
User Id: 15677561
Prepare the Environment
/root/cloudapp-mp2
Prepare the HDFS
mkdir: Permission denied: user=root, access=WRITE, inode="/mp2/links":hdfs:hdfs:drwxr-xr-x
mkdir: Permission denied: user=root, access=WRITE, inode="/mp2/titles":hdfs:hdfs:drwxr-xr-x
mkdir: Permission denied: user=root, access=WRITE, inode="/mp2/misc":hdfs:hdfs:drwxr-xr-x
put: `/mp2/links/': No such file or directory
put: `/mp2/titles/': No such file or directory
put: `/mp2/misc/': No such file or directory
Done&lt;/PRE&gt;&lt;P&gt;Please advice.
Thanks.
Zeev Lazarev&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:58:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/mkdir-Permission-denied-user-root-access-WRITE-inode-quot/m-p/103221#M15399</guid>
      <dc:creator>zeev</dc:creator>
      <dc:date>2022-09-16T09:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: mkdir: Permission denied: user=root, access=WRITE, inode="/mp2/links":hdfs:hdfs:drwxr-xr-x</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/mkdir-Permission-denied-user-root-access-WRITE-inode-quot/m-p/103222#M15400</link>
      <description>&lt;P&gt;I am not familiar with this Coursera course and Hadoop setup. What course is this? &lt;/P&gt;&lt;P&gt;You are getting a "permission denied"-error because you are trying to access a folder that is owned by the &lt;EM&gt;hdfs-user &lt;/EM&gt;and the permissions do not allow write access from others. &lt;/P&gt;&lt;P&gt;A) You could use the HDFS-user to run your application/script&lt;/P&gt;&lt;PRE&gt;su hdfs&lt;/PRE&gt;&lt;P&gt;or &lt;/P&gt;&lt;PRE&gt;export HADOOP_USER_NAME=hdfs&lt;/PRE&gt;&lt;P&gt;B) Change the owner of the mp2-folder (note: to change the owner you have to be a superuser or the owner =&amp;gt; hdfs)&lt;/P&gt;&lt;PRE&gt;hdfs dfs -chown -R &amp;lt;username_of_new_owner&amp;gt; /mp2&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Jan 2016 14:15:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/mkdir-Permission-denied-user-root-access-WRITE-inode-quot/m-p/103222#M15400</guid>
      <dc:creator>jstraub</dc:creator>
      <dc:date>2016-01-19T14:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: mkdir: Permission denied: user=root, access=WRITE, inode="/mp2/links":hdfs:hdfs:drwxr-xr-x</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/mkdir-Permission-denied-user-root-access-WRITE-inode-quot/m-p/103223#M15401</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2261/zlazarev.html" nodeid="2261"&gt;@Zeev Lazarev&lt;/A&gt;&lt;P&gt;Use root does not have access to create directory under / &lt;/P&gt;&lt;P&gt;You can copy and paste this in your ssh window&lt;/P&gt;&lt;P&gt;su - hdfs &lt;/P&gt;&lt;P&gt;hdfs dfs -mkdir -p /mp2/links&lt;/P&gt;&lt;P&gt;hdfs dfs -chown -R root:hdfs /mp2/links&lt;/P&gt;&lt;P&gt;exit&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2016 19:10:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/mkdir-Permission-denied-user-root-access-WRITE-inode-quot/m-p/103223#M15401</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-01-19T19:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: mkdir: Permission denied: user=root, access=WRITE, inode="/mp2/links":hdfs:hdfs:drwxr-xr-x</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/mkdir-Permission-denied-user-root-access-WRITE-inode-quot/m-p/103224#M15402</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/113/jstraub.html"&gt;@Jonas Strau
&lt;/A&gt;@&lt;A href="https://community.hortonworks.com/users/140/nsabharwal.html"&gt;Neeraj Sabharwal&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thank you Guys.
Since the /mp2/links, /mp2/titles, and /mp2/misc folders dynamically created and removed, I better run
on behalf of hdfs user, i.e. su - hdfs.
Will try this out.

Thanks.
Zeev Lazarev&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/113/jstraub.html"&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2016 03:55:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/mkdir-Permission-denied-user-root-access-WRITE-inode-quot/m-p/103224#M15402</guid>
      <dc:creator>zeev</dc:creator>
      <dc:date>2016-01-20T03:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: mkdir: Permission denied: user=root, access=WRITE, inode="/mp2/links":hdfs:hdfs:drwxr-xr-x</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/mkdir-Permission-denied-user-root-access-WRITE-inode-quot/m-p/103225#M15403</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/113/jstraub.html"&gt;@Jonas Straub&lt;/A&gt; &lt;A href="https://community.hortonworks.com/users/140/nsabharwal.html"&gt;@Neeraj Sabharwal&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Using of hdfs user instead of root did work.
Appreciate.
Zeev&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2016 04:11:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/mkdir-Permission-denied-user-root-access-WRITE-inode-quot/m-p/103225#M15403</guid>
      <dc:creator>zeev</dc:creator>
      <dc:date>2016-01-20T04:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: mkdir: Permission denied: user=root, access=WRITE, inode="/mp2/links":hdfs:hdfs:drwxr-xr-x</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/mkdir-Permission-denied-user-root-access-WRITE-inode-quot/m-p/103226#M15404</link>
      <description>&lt;P&gt;Awesome, good to hear. Good Luck with your Coursera course &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2016 13:29:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/mkdir-Permission-denied-user-root-access-WRITE-inode-quot/m-p/103226#M15404</guid>
      <dc:creator>jstraub</dc:creator>
      <dc:date>2016-01-20T13:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: mkdir: Permission denied: user=root, access=WRITE, inode="/mp2/links":hdfs:hdfs:drwxr-xr-x</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/mkdir-Permission-denied-user-root-access-WRITE-inode-quot/m-p/103227#M15405</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/113/jstraub.html"&gt;Jonas Straub&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This seems to be a security risk on hdfs. Any user wihtout having sudo su can become superuser by: export HADOOP_USER_NAME=hdfs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 07 May 2016 01:06:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/mkdir-Permission-denied-user-root-access-WRITE-inode-quot/m-p/103227#M15405</guid>
      <dc:creator>sushil61</dc:creator>
      <dc:date>2016-05-07T01:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: mkdir: Permission denied: user=root, access=WRITE, inode="/mp2/links":hdfs:hdfs:drwxr-xr-x</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/mkdir-Permission-denied-user-root-access-WRITE-inode-quot/m-p/103228#M15406</link>
      <description>&lt;P&gt;Thanks Jonas. Your suggestion of exporting this env variable also works when you are trying to connect and work with a remote cluster, while retaining all the configurations of a local development environment. &lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2016 21:06:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/mkdir-Permission-denied-user-root-access-WRITE-inode-quot/m-p/103228#M15406</guid>
      <dc:creator>tony_fraser</dc:creator>
      <dc:date>2016-10-05T21:06:58Z</dc:date>
    </item>
  </channel>
</rss>

