<?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: yarn logs of hive on spark requests are not accessible in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/yarn-logs-of-hive-on-spark-requests-are-not-accessible/m-p/327180#M230001</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/92504"&gt;@Swagat&lt;/a&gt;,&amp;nbsp;Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Oct 2021 05:37:13 GMT</pubDate>
    <dc:creator>VidyaSargur</dc:creator>
    <dc:date>2021-10-11T05:37:13Z</dc:date>
    <item>
      <title>yarn logs of hive on spark requests are not accessible</title>
      <link>https://community.cloudera.com/t5/Support-Questions/yarn-logs-of-hive-on-spark-requests-are-not-accessible/m-p/326335#M229867</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; 

Examples :

 

[ledapp3@leda-edge-u1-n01 ~]$ yarn logs -applicationId application_1616602302580_19604 &amp;gt;crash.log

WARNING: YARN_OPTS has been replaced by HADOOP_OPTS. Using value of YARN_OPTS.

Permission denied: user=ledapp3, access=READ_EXECUTE, inode="/tmp/logs/hive/logs/application_1616602302580_19604":hive:hadoop:drwxrwx---

 

[calapr01@callisto-edge-u2-n01 ~]$ yarn logs -applicationId application_1623858219829_386030 | head

WARNING: YARN_OPTS has been replaced by HADOOP_OPTS. Using value of YARN_OPTS.

Permission denied: user=calapr01, access=READ_EXECUTE, inode="/tmp/logs/hive/logs/application_1623858219829_386030":hive:hadoop:drwxrwx---

 

[gaiapr01@ganymede-edge-u2-n01 ~]$ yarn logs --applicationId application_1631641196769_7918 | head

WARNING: YARN_OPTS has been replaced by HADOOP_OPTS. Using value of YARN_OPTS.

21/10/01 15:23:44 INFO client.ConfiguredRMFailoverProxyProvider: Failing over to rm249

Permission denied: user=gaiapr01, access=EXECUTE, inode="/tmp/logs/hive":hive:hadoop:drwxrwx--

 

[gaiapr01@io-edge-u1-n01 ~]$yarn logs --applicationId=application_1626699923211_6165

WARNING: YARN_OPTS has been replaced by HADOOP_OPTS. Using value of YARN_OPTS.

21/10/01 15:27:05 INFO client.ConfiguredRMFailoverProxyProvider: Failing over to rm204

Permission denied: user=gaiapr01, access=EXECUTE, inode="/tmp/logs/hive":hive:hadoop:drwxrwx--

 

The problem seems to be that it is the user hive that creates such log files, and so the applicative accounts that launch the jobs cannot access it, and so we can not access it.

We need the applicative accounts to have Read permissions on those log files, otherwise we cannot figure out why our jobs failed since we do not have access to logs.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;We tried to check the ACL rights :&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;[smohanty@io-edge-u1-n01 ~]$ hdfs dfs -getfacl /tmp/logs/hive/logs/&lt;BR /&gt;# file: /tmp/logs/hive/logs&lt;BR /&gt;# owner: hive&lt;BR /&gt;# group: hadoop&lt;BR /&gt;user::rwx&lt;BR /&gt;group::rwx&lt;BR /&gt;group:dsi_moe_bigdata_prod:r-x&lt;BR /&gt;mask::rwx&lt;BR /&gt;other::---&lt;BR /&gt;default:user::rwx&lt;BR /&gt;default:group::rwx&lt;BR /&gt;default:group:dsi_moe_bigdata_prod:r-x&lt;BR /&gt;default:mask::rwx&lt;BR /&gt;default:other::---&lt;/P&gt;&lt;P&gt;[smohanty@io-edge-u1-n01 ~]$&lt;/P&gt;&lt;P&gt;[smohanty@callisto-edge-u2-n01 ~]$ hdfs dfs -getfacl /tmp/logs/hive/logs/&lt;BR /&gt;# file: /tmp/logs/hive/logs&lt;BR /&gt;# owner: hive&lt;BR /&gt;# group: hadoop&lt;BR /&gt;user::rwx&lt;BR /&gt;user:calapr00:rwx&lt;BR /&gt;user:calapr01:rwx&lt;BR /&gt;group::rwx&lt;BR /&gt;group:dsi_moe_dev_bigdata:r-x&lt;BR /&gt;mask::rwx&lt;BR /&gt;other::---&lt;BR /&gt;default:user::rwx&lt;BR /&gt;default:group::rwx&lt;BR /&gt;default:group:dsi_moe_dev_bigdata:r-x&lt;BR /&gt;default:mask::rwx&lt;BR /&gt;default:other::---&lt;/P&gt;&lt;P&gt;[smohanty@callisto-edge-u2-n01 ~]$&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any ACL modification needed&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 02:49:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/yarn-logs-of-hive-on-spark-requests-are-not-accessible/m-p/326335#M229867</guid>
      <dc:creator>Swagat</dc:creator>
      <dc:date>2021-10-05T02:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: yarn logs of hive on spark requests are not accessible</title>
      <link>https://community.cloudera.com/t5/Support-Questions/yarn-logs-of-hive-on-spark-requests-are-not-accessible/m-p/326446#M229883</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/92504"&gt;@Swagat&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(1). Can you run the below command in your Linux terminal and re-run the "yarn logs -applicationID &amp;lt;appID&amp;gt;" command&lt;BR /&gt;&lt;STRONG&gt;export HADOOP_USER_NAME=hdfs&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(2). Based on the logs parent folder "/tmp/logs/hive" and its subfolders are with 770 permission/hive:hadoop so the other users do not have permission to access it. The users ledapp3, calapr01, and gaiapr01 will fall under others so they are not able to access it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Can you run below command as HDFS user and ask your end users to try again.&lt;/STRONG&gt;&lt;BR /&gt;hdfs dfs -chmod 775 &amp;lt;parent folder&amp;gt;&lt;BR /&gt;hdfs dfs -chmod -R 775 &amp;lt;parent folder&amp;gt;&lt;BR /&gt;hdfs dfs -chmod -R 777 &amp;lt;parent folder&amp;gt; ###Least Recommended.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Similar Issue Reference:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/t5/Support-Questions/Permission-denied-user-root-access-WRITE-inode-quot-user/td-p/4943" target="_blank"&gt;https://community.cloudera.com/t5/Support-Questions/Permission-denied-user-root-access-WRITE-inode-quot-user/td-p/4943&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/t5/Support-Questions/Permission-denied-as-I-am-unable-to-delete-a-directory-in/m-p/322469#M228801" target="_blank"&gt;https://community.cloudera.com/t5/Support-Questions/Permission-denied-as-I-am-unable-to-delete-a-directory-in/m-p/322469#M228801&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;If you are happy with the reply, mark it Accept as Solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 13:06:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/yarn-logs-of-hive-on-spark-requests-are-not-accessible/m-p/326446#M229883</guid>
      <dc:creator>Shifu</dc:creator>
      <dc:date>2021-10-05T13:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: yarn logs of hive on spark requests are not accessible</title>
      <link>https://community.cloudera.com/t5/Support-Questions/yarn-logs-of-hive-on-spark-requests-are-not-accessible/m-p/327180#M230001</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/92504"&gt;@Swagat&lt;/a&gt;,&amp;nbsp;Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 05:37:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/yarn-logs-of-hive-on-spark-requests-are-not-accessible/m-p/327180#M230001</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2021-10-11T05:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: yarn logs of hive on spark requests are not accessible</title>
      <link>https://community.cloudera.com/t5/Support-Questions/yarn-logs-of-hive-on-spark-requests-are-not-accessible/m-p/327181#M230002</link>
      <description>&lt;P&gt;Hello , I applied below solution to do the fix.&lt;/P&gt;&lt;P&gt;hdfs dfs -setfacl -R -m group:calapr01:r-x /tmp/logs/*&lt;/P&gt;&lt;P&gt;hdfs dfs -setfacl -m default:group:calapr01:r-x /tmp/logs/hive/logs&lt;/P&gt;&lt;P&gt;Seems I found this link helpful :&lt;/P&gt;&lt;P&gt;&lt;A href="https://my.cloudera.com/knowledge/ERROR-quotPermission-denied-userltusernamegt-accessREADEXECUTE?id=293648" target="_blank"&gt;https://my.cloudera.com/knowledge/ERROR-quotPermission-denied-userltusernamegt-accessREADEXECUTE?id=293648&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 05:48:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/yarn-logs-of-hive-on-spark-requests-are-not-accessible/m-p/327181#M230002</guid>
      <dc:creator>Swagat</dc:creator>
      <dc:date>2021-10-11T05:48:32Z</dc:date>
    </item>
  </channel>
</rss>

