<?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: Permission denied, access=EXECUTE on getting the status of a file in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-denied-access-EXECUTE-on-getting-the-status-of-a/m-p/5081#M328</link>
    <description>Many thanks for following up!&lt;BR /&gt;&lt;BR /&gt;I do think the directory-or-file can be checked for before traversal,&lt;BR /&gt;or at least the error message may be improved, for which I've filed&lt;BR /&gt;&lt;A target="_blank" href="https://issues.apache.org/jira/browse/HDFS-5802."&gt;https://issues.apache.org/jira/browse/HDFS-5802.&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The shell utils handle this in a clearer way btw:&lt;BR /&gt;&lt;BR /&gt;➜ ~ ls foo/file&lt;BR /&gt;ls: foo/file: Not a directory&lt;BR /&gt;➜ ~ hadoop fs -ls foo/file&lt;BR /&gt;ls: `foobar/file': No such file or directory&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 21 Jan 2014 05:24:04 GMT</pubDate>
    <dc:creator>Harsh J</dc:creator>
    <dc:date>2014-01-21T05:24:04Z</dc:date>
    <item>
      <title>Permission denied, access=EXECUTE on getting the status of a file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-denied-access-EXECUTE-on-getting-the-status-of-a/m-p/1967#M325</link>
      <description>&lt;P&gt;Having a customer which is troubled by a strange permission problem. They're using cdh4.1.2 with mr1 (not YARN).&lt;/P&gt;
&lt;P&gt;Following files are generated through an map-reduce job:&lt;/P&gt;
&lt;PRE&gt;drwxr-xr-x - hdfs supergroup 0 2013-04-12 09:28 / 
drwxrwxrwx - datameer hadoop 0 2013-07-10 15:18 /d 
drwxr-xr-x - datameer hadoop 0 2013-09-19 06:14 /d/w 
drwxr-xr-x - datameer hadoop 0 2013-09-30 04:16 /d/w/3 
drwxr-xr-x - datameer hadoop 0 2013-09-30 04:16 /d/w/3/2 
drwxr-xr-x - datameer hadoop 0 2013-09-30 04:16 /d/w/3/2/Hourly 
drwxr-xr-x - datameer hadoop 0 2013-09-30 04:10 /d/w/3/2/Hourly/data 
-rw-r--r-- 3 datameer hadoop 95363 2013-09-30 04:06 /d/w/3/2/Hourly/optimized_preview 
drwxr-xr-x - datameer hadoop 0 2013-09-30 04:10 /d/w/3/2/Hourly/preview&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;No calling FileSystem.exists(new Path("/d/w/3/2/Hourly/optimized_preview")) fails with&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Permission denied: user=datameer, access=EXECUTE, inode="/d/w/3/2/Hourly/optimized_preview":datameer:hadoop:-rw-r--r-- at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.check(FSPermissionChecker.java:205) at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkTraverse(FSPermissionChecker.java:161) at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkPermission(FSPermissionChecker.java:128) at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.checkPermission(FSNamesystem.java:4547) at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.checkTraverse(FSNamesystem.java:4523) at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getFileInfo(FSNamesystem.java:2796) at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.getFileInfo(NameNodeRpcServer.java:664) at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.getFileInfo(ClientNamenodeProtocolServerSideTranslatorPB.java:643) at org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$ClientNamenodeProtocol$2.callBlockingMethod(ClientNamenodeProtocolProtos.java:44128) at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:453) at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:898) at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1693) at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1689) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:396) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1332) at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1687)..."&lt;/PRE&gt;
&lt;P&gt;Which is kind of strange, since files itself can't have execute permissions (&lt;A href="https://issues.apache.org/jira/browse/HADOOP-3078" rel="nofollow" target="_blank"&gt;https://issues.apache.org/jira/browse/HADOOP-3078&lt;/A&gt;) and all parent directories&amp;nbsp;have execute permissions (even if they would not have, then there they would be the&amp;nbsp;&lt;EM&gt;inode&lt;/EM&gt;&amp;nbsp;in the error message and not the file).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I couldn't reproduce the situation on an own&amp;nbsp;cdh4.1.2 cluster, but the problems persists in the customer environment.&lt;/P&gt;
&lt;P&gt;The problem is only on certain files. Usually those files have been a different origin (most files in the /d/w/3/2/Hourly&amp;nbsp;has been produced by &amp;nbsp;one map-reduce job, but the&amp;nbsp;&lt;EM&gt;optimized_preview&lt;/EM&gt;&amp;nbsp;has been produced by a 2nd job and then moved to the folder afterwards.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any clue what could cause that ?&lt;/P&gt;
&lt;P&gt;I suspecting its somehow related to&amp;nbsp;&lt;A href="https://issues.apache.org/jira/browse/HBASE-9509" target="_blank"&gt;https://issues.apache.org/jira/browse/HBASE-9509&lt;/A&gt;, but in this case the file does exist!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help appreciated!&lt;/P&gt;
&lt;P&gt;Johannes&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 08:48:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-denied-access-EXECUTE-on-getting-the-status-of-a/m-p/1967#M325</guid>
      <dc:creator>oae</dc:creator>
      <dc:date>2022-09-16T08:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Permission denied, access=EXECUTE on getting the status of a file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-denied-access-EXECUTE-on-getting-the-status-of-a/m-p/4397#M326</link>
      <description>&lt;P&gt;The exception is odd if it presents itself upon a simple &lt;FONT face="andale mono,times"&gt;fs.exists(&lt;SPAN&gt;new Path("/d/w/3/2/Hourly/optimized_preview")&lt;/SPAN&gt;)&lt;/FONT&gt; call, but how certain are you on if it is that for sure? I do not see that call in the stack trace but perhaps it is chopped off.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The exception can be expected if they do call &lt;FONT face="andale mono,times"&gt;fs.exists(…)&lt;/FONT&gt; with path components that instead treat optimized_preview as a directory, which am rather certain they are or the tool is doing, cause the ACE inode field only shows upto the last parent, and thats quoting the whole file. For example,&amp;nbsp;&lt;FONT face="andale mono,times"&gt;&lt;SPAN&gt;fs.exists(&lt;/SPAN&gt;new Path("/d/w/3/2/Hourly/optimized_preview/file")&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Dec 2013 14:08:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-denied-access-EXECUTE-on-getting-the-status-of-a/m-p/4397#M326</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2013-12-29T14:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: Permission denied, access=EXECUTE on getting the status of a file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-denied-access-EXECUTE-on-getting-the-status-of-a/m-p/5049#M327</link>
      <description>Alright, i was able to reproduce this now by having a file '/file' and calling exists on '/file/anotherFile'. That you help me to fix the customers bug!&lt;BR /&gt;&lt;BR /&gt;Btw, isn't that behaviour itself not a bug in Hadoop ?</description>
      <pubDate>Mon, 20 Jan 2014 17:22:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-denied-access-EXECUTE-on-getting-the-status-of-a/m-p/5049#M327</guid>
      <dc:creator>oae</dc:creator>
      <dc:date>2014-01-20T17:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Permission denied, access=EXECUTE on getting the status of a file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-denied-access-EXECUTE-on-getting-the-status-of-a/m-p/5081#M328</link>
      <description>Many thanks for following up!&lt;BR /&gt;&lt;BR /&gt;I do think the directory-or-file can be checked for before traversal,&lt;BR /&gt;or at least the error message may be improved, for which I've filed&lt;BR /&gt;&lt;A target="_blank" href="https://issues.apache.org/jira/browse/HDFS-5802."&gt;https://issues.apache.org/jira/browse/HDFS-5802.&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The shell utils handle this in a clearer way btw:&lt;BR /&gt;&lt;BR /&gt;➜ ~ ls foo/file&lt;BR /&gt;ls: foo/file: Not a directory&lt;BR /&gt;➜ ~ hadoop fs -ls foo/file&lt;BR /&gt;ls: `foobar/file': No such file or directory&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Jan 2014 05:24:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-denied-access-EXECUTE-on-getting-the-status-of-a/m-p/5081#M328</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2014-01-21T05:24:04Z</dc:date>
    </item>
  </channel>
</rss>

