Return-Path: Delivered-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Received: (qmail 4659 invoked from network); 6 Aug 2010 21:12:43 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Aug 2010 21:12:43 -0000 Received: (qmail 2033 invoked by uid 500); 6 Aug 2010 21:12:41 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 1412 invoked by uid 500); 6 Aug 2010 21:12:41 -0000 Mailing-List: contact mapreduce-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-issues@hadoop.apache.org Delivered-To: mailing list mapreduce-issues@hadoop.apache.org Received: (qmail 1113 invoked by uid 99); 6 Aug 2010 21:12:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Aug 2010 21:12:41 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Aug 2010 21:12:38 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o76LCHmV012135 for ; Fri, 6 Aug 2010 21:12:17 GMT Message-ID: <30367603.205281281129137006.JavaMail.jira@thor> Date: Fri, 6 Aug 2010 17:12:17 -0400 (EDT) From: "Krishna Ramachandran (JIRA)" To: mapreduce-issues@hadoop.apache.org Subject: [jira] Commented: (MAPREDUCE-1736) S3 File Permissions In-Reply-To: <29076735.51251272438752146.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MAPREDUCE-1736?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12896159#action_12896159 ] Krishna Ramachandran commented on MAPREDUCE-1736: ------------------------------------------------- it appears "owner" string is empty in your case - the code that threw this exception is below if (fs.exists(stagingArea)) { FileStatus fsStatus = fs.getFileStatus(stagingArea); String owner = fsStatus.getOwner(); if (!(owner.equals(currentUser) || owner.equals(realUser)) || !fsStatus.getPermission().equals(JOB_DIR_PERMISSION)) { throw new IOException("The ownership/permissions on the staging " + "directory " + stagingArea + " is not as expected. " + "It is owned by " + owner + " and permissions are "+ fsStatus.getPermission() + ". The directory must " + "be owned by the submitter " + currentUser + " or " + "by " + realUser + " and permissions must be rwx------"); } } else { can you check who owns your stagingArea (example, /user/root/.staging) if you clean the stagingarea can you submit successfully? > S3 File Permissions > ------------------- > > Key: MAPREDUCE-1736 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-1736 > Project: Hadoop Map/Reduce > Issue Type: Bug > Affects Versions: 0.22.0 > Environment: Hadoop cluster using 3 small Amazon EC2 machines and the S3FileSystem. > Hadoop compiled from latest trunc: 0.22.0-SNAPSHOT > core-site: > fs.default.name=s3://my-s3-bucket > fs.s3.awsAccessKeyId=[key id omitted] > fs.s3.awsSecretAccessKey=[secret key omitted] > hadoop.tmp.dir=/mnt/hadoop.tmp.dir > hdfs-site: empty > mapred-site: > mapred.job.tracker=[domU-XX-XX-XX-XX-XX-XX.compute-1.internal:9001] > mapred.map.tasks=6 > mapred.reduce.tasks=6 > Reporter: Danny Leshem > Priority: Blocker > Fix For: 0.22.0 > > > Till lately I've been using 0.20.2 and everything was ok. Now I'm using the latest trunc 0.22.0-SNAPSHOT and getting the following thrown: > Exception in thread "main" java.io.IOException: The ownership/permissions on the staging directory s3://my-s3-bucket/mnt/hadoop.tmp.dir/mapred/staging/root/.staging is not as expected. It is owned by and permissions are rwxrwxrwx. The directory must be owned by the submitter root or by root and permissions must be rwx------ > at > org.apache.hadoop.mapreduce.JobSubmissionFiles.getStagingDir(JobSubmissionFiles.java:107) > at > org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:312) > at org.apache.hadoop.mapreduce.Job.submit(Job.java:961) > at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:977) > at com.mycompany.MyJob.runJob(MyJob.java:153) > at com.mycompany.MyJob.run(MyJob.java:177) > at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65) > at com.mycompany.MyOtherJob.runJob(MyOtherJob.java:62) > at com.mycompany.MyOtherJob.run(MyOtherJob.java:112) > at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65) > at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79) > at com.mycompany.MyOtherJob.main(MyOtherJob.java:117) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.apache.hadoop.util.RunJar.main(RunJar.java:187) > (The "it is owned by ... and permissions " is not a mistake, seems like the empty string is printed there) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.