<?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: ls: Permission denied in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/ls-Permission-denied/m-p/241466#M203269</link>
    <description>&lt;P&gt;thank you for your answer.&lt;/P&gt;</description>
    <pubDate>Fri, 31 May 2019 04:58:11 GMT</pubDate>
    <dc:creator>Koffi</dc:creator>
    <dc:date>2019-05-31T04:58:11Z</dc:date>
    <item>
      <title>ls: Permission denied</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ls-Permission-denied/m-p/241464#M203267</link>
      <description>&lt;P&gt;Hi, i am new with hadoop,&lt;/P&gt;&lt;P&gt;I have the following errors when i try to run the command hdfs dfs -ls on a specific directory:&lt;/P&gt;&lt;PRE&gt;[t_hdhusr@node01 ~]$ hdfs dfs -ls /user/T_HDHUSR

log4j:ERROR setFile(null,true) call failed.

java.io.FileNotFoundException: /var/log/hadoop/t_hdhusr/hadoop-mapreduce.jobsummary.gz (No such file or directory)

at java.io.FileOutputStream.open0(Native Method)

at java.io.FileOutputStream.open(FileOutputStream.java:270)

at java.io.FileOutputStream.&amp;lt;init&amp;gt;(FileOutputStream.java:213)

at java.io.FileOutputStream.&amp;lt;init&amp;gt;(FileOutputStream.java:133)

at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)

at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:207)

at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)

at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)

at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:172)

at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:104)

at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:842)

at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:768)

at org.apache.log4j.PropertyConfigurator.parseCatsAndRenderers(PropertyConfigurator.java:672)

at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:516)

at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:580)

at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526)

at org.apache.log4j.LogManager.&amp;lt;clinit&amp;gt;(LogManager.java:127)

at org.slf4j.impl.Log4jLoggerFactory.&amp;lt;init&amp;gt;(Log4jLoggerFactory.java:66)

at org.slf4j.impl.StaticLoggerBinder.&amp;lt;init&amp;gt;(StaticLoggerBinder.java:72)

at org.slf4j.impl.StaticLoggerBinder.&amp;lt;clinit&amp;gt;(StaticLoggerBinder.java:45)

at org.slf4j.LoggerFactory.bind(LoggerFactory.java:150)

at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:124)

at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:412)

at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:357)

at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:383)

at org.apache.hadoop.fs.FsShell.&amp;lt;clinit&amp;gt;(FsShell.java:48)

ls: Permission denied: user=t_hdhusr, access=READ_EXECUTE, inode="/user/T_HDHUSR":T_HDHUSR:hdfs:drwx------&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 01:27:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ls-Permission-denied/m-p/241464#M203267</guid>
      <dc:creator>Koffi</dc:creator>
      <dc:date>2019-05-31T01:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: ls: Permission denied</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ls-Permission-denied/m-p/241465#M203268</link>
      <description>&lt;P&gt;&lt;A rel="noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer" href="http://@Koffi" target="_blank"&gt;&lt;EM&gt;@Koffi&lt;/EM&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;This is a permission issue which can be resolved by changing the access using the hdfs user who happens to be the HDFS superuser &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;The error Permission denied: user=t_hdhusr, access=READ_EXECUTE, inode="/user/T_HDHUSR":T_HDHUSR:hdfs:drwx------&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;As the root user &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;# su- hdfs
$ hdfs dfs -chown -R &amp;nbsp;t_hdhusr:hdfs /user/T_HDHUSR&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;&lt;/EM&gt;&lt;EM&gt;It seems &lt;STRONG&gt;t_hdhuser&lt;/STRONG&gt; and &lt;STRONG&gt;T_HDHUSR&lt;/STRONG&gt; is not interpreted as the same &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Now running the below should succeed&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;$ hdfs dfs -ls /user/T_HDHUSR&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;HTH &lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 03:51:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ls-Permission-denied/m-p/241465#M203268</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2019-05-31T03:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: ls: Permission denied</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ls-Permission-denied/m-p/241466#M203269</link>
      <description>&lt;P&gt;thank you for your answer.&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 04:58:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ls-Permission-denied/m-p/241466#M203269</guid>
      <dc:creator>Koffi</dc:creator>
      <dc:date>2019-05-31T04:58:11Z</dc:date>
    </item>
  </channel>
</rss>

