<?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: Hive error on HDP6 in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-error-on-HDP6/m-p/214609#M69095</link>
    <description>&lt;P&gt;umask on Linux is 0022&lt;/P&gt;</description>
    <pubDate>Fri, 06 Oct 2017 22:39:18 GMT</pubDate>
    <dc:creator>winnie_philip</dc:creator>
    <dc:date>2017-10-06T22:39:18Z</dc:date>
    <item>
      <title>Hive error on HDP6</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-error-on-HDP6/m-p/214604#M69090</link>
      <description>&lt;P&gt;I'm keep getting permission error while loading data to Hive tables and/or querying tables.  I granted full(r+w+x) permission to appl/hadoop/yarn/local/usercache in all of my cluster nodes.  I'm still getting errors.  I have 3 nodes cluster (HDP6).&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Application application_1507209932823_0008 failed 2 times due to AM Container for appattempt_1507209932823_0008_000002 exited with exitCode: -1000
For more detailed output, check the application tracking page: &lt;A href="http://mymaster.fisdev.local:8088/cluster/app/application_1507209932823_0008" target="_blank"&gt;http://mymaster.fisdev.local:8088/cluster/app/application_1507209932823_0008&lt;/A&gt; Then click on links to logs of each attempt.
Diagnostics: Could not set permissions for local dir /appl/hadoop/yarn/local/usercache
Failing this attempt. Failing the application.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 03:36:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-error-on-HDP6/m-p/214604#M69090</guid>
      <dc:creator>winnie_philip</dc:creator>
      <dc:date>2017-10-06T03:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Hive error on HDP6</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-error-on-HDP6/m-p/214605#M69091</link>
      <description>&lt;P&gt;I also noticed the permission I added keeps changing to original value for below folder. So i get inconsistent response.&lt;/P&gt;&lt;P&gt;[appadmin@mygrpdata1 yarn]$ ls -al /appl/hadoop/yarn/local/ &lt;/P&gt;&lt;P&gt;total 0 &lt;/P&gt;&lt;P&gt;drwxrwxrwx 5 yarn hadoop 57 Oct  5 16:13 . &lt;/P&gt;&lt;P&gt;drwxrwxrwx 4 root root   30 Aug 24 14:36 .. &lt;/P&gt;&lt;P&gt;drwxr-xr-x 3 yarn hadoop 16 Aug 30 13:46 filecache &lt;/P&gt;&lt;P&gt;drwx------ 3 yarn hadoop 44 Oct  5 16:13 nmPrivate &lt;/P&gt;&lt;P&gt;drwxr-xr-x 5 yarn hadoop 57 Oct  5 09:24 usercache&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 04:20:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-error-on-HDP6/m-p/214605#M69091</guid>
      <dc:creator>winnie_philip</dc:creator>
      <dc:date>2017-10-06T04:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Hive error on HDP6</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-error-on-HDP6/m-p/214606#M69092</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/30153/winniephilip.html" nodeid="30153"&gt;@Winnie Philip&lt;/A&gt;&lt;P&gt;Check the umask permission on your Linux machines. Even you can remove all the info under &lt;EM&gt;/appl/hadoop/yarn/local/usercache/* &lt;/EM&gt;on your each node where you have resource manager so that  it will recreate the file with new permissions.&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 12:20:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-error-on-HDP6/m-p/214606#M69092</guid>
      <dc:creator>bandarusridhar1</dc:creator>
      <dc:date>2017-10-06T12:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: Hive error on HDP6</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-error-on-HDP6/m-p/214607#M69093</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;A href="https://community.hortonworks.com/users/30153/winniephilip.html"&gt;@Winnie Philip&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Can you attach the RM logs ?&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 14:03:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-error-on-HDP6/m-p/214607#M69093</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2017-10-06T14:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: Hive error on HDP6</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-error-on-HDP6/m-p/214608#M69094</link>
      <description>&lt;P&gt;Hi Geoffrey,&lt;/P&gt;&lt;P&gt;Please find attatched the RM log from today.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/40717-rm-log.txt"&gt;rm-log.txt&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 22:37:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-error-on-HDP6/m-p/214608#M69094</guid>
      <dc:creator>winnie_philip</dc:creator>
      <dc:date>2017-10-06T22:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: Hive error on HDP6</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-error-on-HDP6/m-p/214609#M69095</link>
      <description>&lt;P&gt;umask on Linux is 0022&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 22:39:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-error-on-HDP6/m-p/214609#M69095</guid>
      <dc:creator>winnie_philip</dc:creator>
      <dc:date>2017-10-06T22:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Hive error on HDP6</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-error-on-HDP6/m-p/214610#M69096</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/30153/winniephilip.html" nodeid="30153"&gt;@Winnie Philip&lt;/A&gt;&lt;/P&gt;&lt;P&gt;We see the Warning as :&lt;/P&gt;&lt;PRE&gt;2017-10-06 10:28:10,119 WARN  localizer.ResourceLocalizationService (ResourceLocalizationService.java:checkLocalDir(1445)) - Permissions incorrectly set for dir /usr/local/opt/hadoop/yarn/local/nmPrivate, should be rwx------, actual value = rwx-w----&amp;lt;br&amp;gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;We will need to check the permissions for yarn local directories Which basically depends on the &lt;STRONG&gt;umask value set for the user 'yarn' &lt;/STRONG&gt;at system level.&lt;BR /&gt;&lt;BR /&gt;What is the &lt;STRONG&gt; umask&lt;/STRONG&gt; value set for the&lt;STRONG&gt; yarn user&lt;/STRONG&gt; set under the following files:&lt;/P&gt;&lt;PRE&gt;/etc/bashrc 
/etc/profile&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Above is a WARNING message which can be seen when the  ResourceLocalizationService checks the permission of nmPrivate, if it is not 700, it will just log a Warn message and change the permission to 700.&lt;BR /&gt;&lt;BR /&gt;But in your case it is not able to change the permission.&lt;/P&gt;&lt;PRE&gt;WARN  localizer.ResourceLocalizationService (ResourceLocalizationService.java:initializeLocalDir(1277)) - Could not set permissions for local dir /appl/hadoop/yarn/local/usercache
EPERM: Operation not permitted&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Please check the  Node Managers' file/folder permissions  is it is set to "yarn:hadoop"  (like  /appl/hadoop/yarn/)&lt;/P&gt;&lt;PRE&gt;# ls -ld /appl/hadoop/yarn
# chown yarn:hadoop /appl/hadoop/yarn&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 23:17:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-error-on-HDP6/m-p/214610#M69096</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-10-06T23:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: Hive error on HDP6</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-error-on-HDP6/m-p/214611#M69097</link>
      <description>&lt;P&gt;all 3 nodes have following lines in 2 files, how do I check umask value set for the yarn user?&lt;STRONG&gt;  &lt;/STRONG&gt;i logged as sudo su - yarn, and noted umask is 022&lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;/etc/bashrc &lt;/LI&gt;&lt;LI&gt;/etc/profile&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;    # By default, we want umask to get set. This sets it for non-login shell.
    # Current threshold for system reserved uid/gids is 200
    # You could check uidgid reservation validity in
    # /usr/share/doc/setup-*/uidgid file &lt;/P&gt;&lt;P&gt;    if [ $UID -gt 199 ] &amp;amp;&amp;amp; [ "`/usr/bin/id -gn`" = "`/usr/bin/id -un`" ]; &lt;/P&gt;&lt;P&gt;then
       umask 002 &lt;/P&gt;&lt;P&gt;    else
       umask 022 &lt;/P&gt;&lt;P&gt;    fi&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 23:47:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-error-on-HDP6/m-p/214611#M69097</guid>
      <dc:creator>winnie_philip</dc:creator>
      <dc:date>2017-10-06T23:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Hive error on HDP6</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-error-on-HDP6/m-p/214612#M69098</link>
      <description>&lt;P&gt;I noticed /appl/hadoop/yarn on different nodes had different owner/grp. I made them all to yarn:hadoop&lt;/P&gt;&lt;P&gt;before:&lt;/P&gt;&lt;P&gt;[yarn@vlmazgrpmaster ~]$ ls -ld /appl/hadoop/yarn
drwxrwxrwx 4 root hadoop 30 Aug 24 14:10 /appl/hadoop/yarn
[e1009156@vlmazgrpdata1 ~]$ ls -ld /appl/hadoop/yarn
drwxrwxrwx 4 root root 30 Aug 24 14:36 /appl/hadoop/yarn
[e1009156@vlmazgrpdata2 ~]$ ls -ld /appl/hadoop/yarn
drwxrwxrwx 4 root hadoop 30 Aug 24 14:35 /appl/hadoop/yarn &lt;/P&gt;&lt;P&gt;now:&lt;/P&gt;&lt;P&gt;drwxrwxrwx 4 &lt;STRONG&gt;yarn hadoop&lt;/STRONG&gt; 30 Aug 24 14:35 /appl/hadoop/yarn&lt;/P&gt;</description>
      <pubDate>Sat, 07 Oct 2017 00:49:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-error-on-HDP6/m-p/214612#M69098</guid>
      <dc:creator>winnie_philip</dc:creator>
      <dc:date>2017-10-07T00:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Hive error on HDP6</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-error-on-HDP6/m-p/214613#M69099</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/30153/winniephilip.html" nodeid="30153"&gt;@Winnie Philip&lt;/A&gt;&lt;/P&gt;&lt;P&gt;After fixing the user:group .. is it working  Or still failing&lt;/P&gt;&lt;PRE&gt;drwxrwxrwx 4 yarn hadoop 30 Aug 24 14:35 /appl/hadoop/yarn&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Sat, 07 Oct 2017 01:00:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-error-on-HDP6/m-p/214613#M69099</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-10-07T01:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: Hive error on HDP6</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-error-on-HDP6/m-p/214614#M69100</link>
      <description>&lt;P&gt;It worked 1/3 test. it works sometimes, but not always:&lt;/P&gt;&lt;P&gt;I checked all nodemanager directories, they all looked same owner:grp:&lt;/P&gt;&lt;P&gt; ls -ld /hadoop/yarn/local
 drwxr-xr-x 6 yarn hadoop 78 Oct  6 12:56 /hadoop/yarn/local
 ls -ld /appl/hadoop/yarn/local
 drwxrwxrwx 5 yarn hadoop 57 Oct  6 12:56 /appl/hadoop/yarn/local
 ls -ld /usr/db/hadoop/yarn/local
 drwxr-xr-x 5 yarn hadoop 57 Oct  6 12:56 /usr/db/hadoop/yarn/local
 ls -ld  /usr/local/opt/hadoop/yarn/local
 drwxr-xr-x 5 yarn hadoop 57 Oct  6 12:58 /usr/local/opt/hadoop/yarn/local&lt;/P&gt;</description>
      <pubDate>Sat, 07 Oct 2017 01:09:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-error-on-HDP6/m-p/214614#M69100</guid>
      <dc:creator>winnie_philip</dc:creator>
      <dc:date>2017-10-07T01:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: Hive error on HDP6</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-error-on-HDP6/m-p/214615#M69101</link>
      <description>&lt;P&gt;I ran the command with -R, looks like fixed it,  I will watch for errors little bit,  I restarted YARN also, this directory tree had mixed owner:grp.  &lt;/P&gt;&lt;P&gt;chown yarn:hadoop -R /appl/hadoop/yarn&lt;/P&gt;</description>
      <pubDate>Sat, 07 Oct 2017 02:05:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-error-on-HDP6/m-p/214615#M69101</guid>
      <dc:creator>winnie_philip</dc:creator>
      <dc:date>2017-10-07T02:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Hive error on HDP6</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-error-on-HDP6/m-p/214616#M69102</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/30153/winniephilip.html" nodeid="30153"&gt;@Winnie Philip&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Great!!! to see your issue is fixed. It will be also great if you can mark this HCC thread as Answered by 
clicking on the "Accept" Button. That way other HCC users can quickly 
find the solution when they encounter the same issue.&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/30153/winniephilip.html" nodeid="30153"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Sat, 07 Oct 2017 02:25:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-error-on-HDP6/m-p/214616#M69102</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-10-07T02:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Hive error on HDP6</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-error-on-HDP6/m-p/214617#M69103</link>
      <description>&lt;P&gt;Also,  I went ahead and ran commands for all other nodemanager yarn directory chain on all nodes:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;sudo chown -R yarn:hadoop -R /appl/hadoop/yarn &lt;/LI&gt;&lt;LI&gt;sudo chown -R yarn:hadoop /hadoop/yarn/ &lt;/LI&gt;&lt;LI&gt;sudo chown -R yarn:hadoop /usr/db/hadoop/yarn/ &lt;/LI&gt;&lt;LI&gt;sudo chown -R yarn:hadoop /usr/local/opt/hadoop/yarn/&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thank you very much for all help from everyone!  I really appreciate!!&lt;/P&gt;</description>
      <pubDate>Sat, 07 Oct 2017 02:46:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-error-on-HDP6/m-p/214617#M69103</guid>
      <dc:creator>winnie_philip</dc:creator>
      <dc:date>2017-10-07T02:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Hive error on HDP6</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-error-on-HDP6/m-p/214618#M69104</link>
      <description>&lt;P&gt;Thank you Geoffery&lt;/P&gt;</description>
      <pubDate>Sat, 07 Oct 2017 02:49:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-error-on-HDP6/m-p/214618#M69104</guid>
      <dc:creator>winnie_philip</dc:creator>
      <dc:date>2017-10-07T02:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Hive error on HDP6</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-error-on-HDP6/m-p/214619#M69105</link>
      <description>&lt;P&gt;Thank you Sridhar!&lt;/P&gt;</description>
      <pubDate>Sat, 07 Oct 2017 02:51:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-error-on-HDP6/m-p/214619#M69105</guid>
      <dc:creator>winnie_philip</dc:creator>
      <dc:date>2017-10-07T02:51:09Z</dc:date>
    </item>
  </channel>
</rss>

