Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 99071 invoked from network); 19 Nov 2008 17:02:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Nov 2008 17:02:43 -0000 Received: (qmail 17726 invoked by uid 500); 19 Nov 2008 17:02:48 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 17691 invoked by uid 500); 19 Nov 2008 17:02:48 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 17680 invoked by uid 99); 19 Nov 2008 17:02:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Nov 2008 09:02:48 -0800 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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Nov 2008 17:01:34 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6E108234C294 for ; Wed, 19 Nov 2008 09:01:49 -0800 (PST) Message-ID: <1538113565.1227114109435.JavaMail.jira@brutus> Date: Wed, 19 Nov 2008 09:01:49 -0800 (PST) From: "Elias Torres (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Updated: (HADOOP-4684) NativeS3FileSystem always tries to create a bucket, even when used for read-only workflows. In-Reply-To: <1788304586.1227113024224.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-4684?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Elias Torres updated HADOOP-4684: --------------------------------- Attachment: HADOOP-4684.patch > NativeS3FileSystem always tries to create a bucket, even when used for read-only workflows. > ------------------------------------------------------------------------------------------- > > Key: HADOOP-4684 > URL: https://issues.apache.org/jira/browse/HADOOP-4684 > Project: Hadoop Core > Issue Type: Bug > Components: fs/s3 > Affects Versions: 0.19.0 > Environment: I tried this in Mac OSX Leopard and Ubuntu Linux on EC2 > Reporter: Elias Torres > Priority: Minor > Fix For: 0.19.0 > > Attachments: HADOOP-4684.patch > > > I'm running two types of workflow. The first is a set of map jobs that read from S3 using s3n://ID:SECRET@bucket/ as input and HDFS as output. The other is using distcp as a backup tool to copy the outputs of other jobs using distcp. > bq. hadoop distcp hdfs://host:50001/user/root/from/ s3n://ID:SECRET@backup-bucket/ > Unfortunately, I'm getting too many failures of this kind: > {code} > 08/11/19 16:08:27 WARN mapred.JobClient: Use GenericOptionsParser for parsing the arguments. Applications should implement Tool for the same. > org.apache.hadoop.fs.s3.S3Exception: org.jets3t.service.S3ServiceException: S3 PUT failed for '/' XML Error Message: OperationAbortedA conflicting conditional operation is currently in progress against this resource. Please try again.324E696A4BCA8731{REMOVED} > at org.apache.hadoop.fs.s3native.Jets3tNativeFileSystemStore.createBucket(Jets3tNativeFileSystemStore.java:74) > at org.apache.hadoop.fs.s3native.Jets3tNativeFileSystemStore.initialize(Jets3tNativeFileSystemStore.java:63) > 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.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:82) > at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:59) > at org.apache.hadoop.fs.s3native.$Proxy2.initialize(Unknown Source) > at org.apache.hadoop.fs.s3native.NativeS3FileSystem.initialize(NativeS3FileSystem.java:215) > at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:1339) > at org.apache.hadoop.fs.FileSystem.access$300(FileSystem.java:56) > at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:1351) > at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:213) > at org.apache.hadoop.fs.Path.getFileSystem(Path.java:175) > at org.apache.hadoop.mapred.FileInputFormat.listStatus(FileInputFormat.java:158) > at org.apache.hadoop.mapred.FileInputFormat.getSplits(FileInputFormat.java:210) > at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:742) > at org.apache.hadoop.streaming.StreamJob.submitAndMonitorJob(StreamJob.java:925) > at org.apache.hadoop.streaming.StreamJob.go(StreamJob.java:115) > at org.apache.hadoop.streaming.HadoopStreaming.main(HadoopStreaming.java:33) > 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:155) > at org.apache.hadoop.mapred.JobShell.run(JobShell.java:54) > at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65) > at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79) > at org.apache.hadoop.mapred.JobShell.main(JobShell.java:68) > Caused by: org.jets3t.service.S3ServiceException: S3 PUT failed for '/' XML Error Message: OperationAbortedA conflicting conditional operation is currently in progress against this resource. Please try again.{REMOVED}{REMOVED} > at org.jets3t.service.impl.rest.httpclient.RestS3Service.performRequest(RestS3Service.java:424) > at org.jets3t.service.impl.rest.httpclient.RestS3Service.performRestPut(RestS3Service.java:734) > at org.jets3t.service.impl.rest.httpclient.RestS3Service.createObjectImpl(RestS3Service.java:1357) > at org.jets3t.service.impl.rest.httpclient.RestS3Service.createBucketImpl(RestS3Service.java:1234) > at org.jets3t.service.S3Service.createBucket(S3Service.java:1390) > at org.jets3t.service.S3Service.createBucket(S3Service.java:1158) > at org.jets3t.service.S3Service.createBucket(S3Service.java:1177) > at org.apache.hadoop.fs.s3native.Jets3tNativeFileSystemStore.createBucket(Jets3tNativeFileSystemStore.java:69) > ... 29 more > {code} > The issue is that Jets3tNativeFileSystemStore always tries to create a bucket during initialization. I'm sure that's a good thing for when s3n is used to write output, but for read operations, it'd be best if it checked for existence first. IMHO. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.