<?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>topic Re: Load job for HDFS is throwing error when run by backup-admin in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Load-job-for-HDFS-is-throwing-error-when-run-by-backup-admin/m-p/369837#M9108</link>
    <description>&lt;P&gt;I just wanted to follow-up on this posting with the solution that we found.&amp;nbsp; Essentially, we had a few issues.&amp;nbsp; The real issue was caused by the fact that our hdfs-site.xml had the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;property&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;name&amp;gt;dfs.permissions.superusergroup&amp;lt;/name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;value&amp;gt;supergroup&amp;lt;/value&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;property&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;name&amp;gt;fs.permissions.umask-mode&amp;lt;/name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;value&amp;gt;022&amp;lt;/value&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To fix the issue, we did the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Created a new group in HDFS (adding our hadoop admins to the group - everyone that will be creating files in hadoop).&lt;/LI&gt;&lt;LI&gt;Modified the above lines in hdfs-site.xml file to the following:&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;&amp;lt;property&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;name&amp;gt;dfs.permissions.superusergroup&amp;lt;/name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;value&amp;gt;&lt;STRONG&gt;&lt;EM&gt;newgroup_here&lt;/EM&gt;&lt;/STRONG&gt;&amp;lt;/value&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;property&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;name&amp;gt;fs.permissions.umask-mode&amp;lt;/name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;value&amp;gt;&lt;STRONG&gt;&lt;EM&gt;002&lt;/EM&gt;&lt;/STRONG&gt;&amp;lt;/value&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/property&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Ran the following commands on /vapublic&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;./hadoop fs -chmod -t /vapublic&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;./hadoop fs -chmod -R 664 /vapublic&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;./hadoop fs -chgrp -R hadoopadmin /vapublic&lt;/FONT&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;Once the above steps were completed, we did a restart on hdfs and everything worked as expected.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;Kudos to Blake with SAS Tech Support for helping us find/fix this issue.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;Thanks,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;Ricky&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Jun 2017 11:51:24 GMT</pubDate>
    <dc:creator>rgreen33</dc:creator>
    <dc:date>2017-06-23T11:51:24Z</dc:date>
    <item>
      <title>Load job for HDFS is throwing error when run by backup-admin</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Load-job-for-HDFS-is-throwing-error-when-run-by-backup-admin/m-p/363440#M8788</link>
      <description>&lt;P&gt;I have several jobs setup that run nightly which loads data into HDFS (another set of jobs follow that will load from HDFS to LASR).&amp;nbsp; Everything works fine for me...and if something occassionally fails, I can re-run the jobs without any issues.&amp;nbsp; The problem comes in when my back-up admin needs to re-run one of these jobs.&amp;nbsp; When she attempts to re-run one of&amp;nbsp;the HDFS load jobs (due to data changes, we re-load the entire table), she receives the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR:&lt;STRIKE&gt;oursasserver.name&lt;/STRIKE&gt; (&lt;STRIKE&gt;xxx.xxx.xxx.xxx&lt;/STRIKE&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; setting: user=&lt;STRIKE&gt;usernamehere&lt;/STRIKE&gt;, inode=tablename.sashdat&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkStickyBit(FSPermissionChecker.java:366)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkPermission(FSPermissionChecker.java:173)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; org.apache.hadoop.hdfs.server.namenode.FSNamesystem.checkPermission(FSNamesystem.java:5497)&lt;/P&gt;&lt;P&gt;ERROR: The HDFS concatenation of the file blocks failed.&lt;/P&gt;&lt;P&gt;ERROR: An error occurred during the transmission of data to file '/vapublic/tablename' on the namenode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know why she receivs this error...it is due to the fact that she has "read only" permissions to the file in /vapublic.&amp;nbsp; The permissions show up as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Permission&amp;nbsp; Owner&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Group&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...Name&lt;/P&gt;&lt;P&gt;-rw-r--r--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rgreen33&amp;nbsp; supergroup&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;tablename&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, since I am the owner and I am the only one with write access, the job fails when it attempts to delete/recreate the file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, what is the proper way to get around this?&amp;nbsp; I have thought of the following...but, not sure which is the correct way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Add all SAS admins to the supergroup and elevate the permission of the supergroup for the files in the /vapublic directory.&lt;/LI&gt;&lt;LI&gt;Create a SAS account (share credentials with other SAS admins) and setup all jobs to run as this "special" account.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Ideas/suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ricky&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 14:09:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Load-job-for-HDFS-is-throwing-error-when-run-by-backup-admin/m-p/363440#M8788</guid>
      <dc:creator>rgreen33</dc:creator>
      <dc:date>2017-06-01T14:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Load job for HDFS is throwing error when run by backup-admin</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Load-job-for-HDFS-is-throwing-error-when-run-by-backup-admin/m-p/363470#M8790</link>
      <description>One additional piece of information...&lt;BR /&gt;&lt;BR /&gt;If I look at the parent folder "vapublic", I see that the permissions are set as follows:&lt;BR /&gt;&lt;BR /&gt;Permission Owner Group&lt;BR /&gt;drwxrwxrwt hdfs supergroup&lt;BR /&gt;&lt;BR /&gt;So, I suppose another option would be to drop the sticky bit from the vapublic folder. But, what problems would this cause? Or, what holes could this open up?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Ricky</description>
      <pubDate>Thu, 01 Jun 2017 14:51:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Load-job-for-HDFS-is-throwing-error-when-run-by-backup-admin/m-p/363470#M8790</guid>
      <dc:creator>rgreen33</dc:creator>
      <dc:date>2017-06-01T14:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Load job for HDFS is throwing error when run by backup-admin</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Load-job-for-HDFS-is-throwing-error-when-run-by-backup-admin/m-p/364536#M8819</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/125413"&gt;@rgreen33&lt;/a&gt;, Ricky,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i would just make it fit to your "company traditions", on the way that you better minimize the exceptions during maintenance and procedures.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Generally speaking, I would just go for the first option. PROs: you can always trace back who did what. CONs: maybe you will grant too many permissions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, if you go for the second option, you will just get the same CONs.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 11:46:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Load-job-for-HDFS-is-throwing-error-when-run-by-backup-admin/m-p/364536#M8819</guid>
      <dc:creator>JuanS_OCS</dc:creator>
      <dc:date>2017-06-06T11:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Load job for HDFS is throwing error when run by backup-admin</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Load-job-for-HDFS-is-throwing-error-when-run-by-backup-admin/m-p/369837#M9108</link>
      <description>&lt;P&gt;I just wanted to follow-up on this posting with the solution that we found.&amp;nbsp; Essentially, we had a few issues.&amp;nbsp; The real issue was caused by the fact that our hdfs-site.xml had the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;property&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;name&amp;gt;dfs.permissions.superusergroup&amp;lt;/name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;value&amp;gt;supergroup&amp;lt;/value&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;property&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;name&amp;gt;fs.permissions.umask-mode&amp;lt;/name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;value&amp;gt;022&amp;lt;/value&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To fix the issue, we did the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Created a new group in HDFS (adding our hadoop admins to the group - everyone that will be creating files in hadoop).&lt;/LI&gt;&lt;LI&gt;Modified the above lines in hdfs-site.xml file to the following:&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;&amp;lt;property&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;name&amp;gt;dfs.permissions.superusergroup&amp;lt;/name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;value&amp;gt;&lt;STRONG&gt;&lt;EM&gt;newgroup_here&lt;/EM&gt;&lt;/STRONG&gt;&amp;lt;/value&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;property&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;name&amp;gt;fs.permissions.umask-mode&amp;lt;/name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;value&amp;gt;&lt;STRONG&gt;&lt;EM&gt;002&lt;/EM&gt;&lt;/STRONG&gt;&amp;lt;/value&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/property&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Ran the following commands on /vapublic&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;./hadoop fs -chmod -t /vapublic&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;./hadoop fs -chmod -R 664 /vapublic&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;./hadoop fs -chgrp -R hadoopadmin /vapublic&lt;/FONT&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;Once the above steps were completed, we did a restart on hdfs and everything worked as expected.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;Kudos to Blake with SAS Tech Support for helping us find/fix this issue.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;Thanks,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;Ricky&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 11:51:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Load-job-for-HDFS-is-throwing-error-when-run-by-backup-admin/m-p/369837#M9108</guid>
      <dc:creator>rgreen33</dc:creator>
      <dc:date>2017-06-23T11:51:24Z</dc:date>
    </item>
  </channel>
</rss>

