hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom White (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HADOOP-4684) NativeS3FileSystem always tries to create a bucket, even when used for read-only workflows.
Date Fri, 21 Nov 2008 15:55:45 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-4684?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Tom White updated HADOOP-4684:
------------------------------

    Resolution: Duplicate
        Status: Resolved  (was: Patch Available)

Duplicate of HADOOP-4422

> 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.1
>
>         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: <?xml version="1.0" encoding="UTF-8"?><Error><Code>OperationAborted</Code><Message>A
conflicting conditional operation is currently in progress against this resource. Please try
again.</Message><RequestId>324E696A4BCA8731</RequestId><HostId>{REMOVED}</HostId></Error>
> 	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:
<?xml version="1.0" encoding="UTF-8"?><Error><Code>OperationAborted</Code><Message>A
conflicting conditional operation is currently in progress against this resource. Please try
again.</Message><RequestId>{REMOVED}</RequestId><HostId>{REMOVED}</HostId></Error>
> 	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.


Mime
View raw message