Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8B01919F00 for ; Thu, 14 Apr 2016 09:21:26 +0000 (UTC) Received: (qmail 35104 invoked by uid 500); 14 Apr 2016 09:21:26 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 35052 invoked by uid 500); 14 Apr 2016 09:21:25 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 35030 invoked by uid 99); 14 Apr 2016 09:21:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Apr 2016 09:21:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A4ED52C1F5D for ; Thu, 14 Apr 2016 09:21:25 +0000 (UTC) Date: Thu, 14 Apr 2016 09:21:25 +0000 (UTC) From: "Steve Loughran (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-13022) S3 MD5 check fails on Server Side Encryption with AWS and default key is used MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-13022?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15240853#comment-15240853 ] Steve Loughran commented on HADOOP-13022: ----------------------------------------- ok. Can you submit the patch to update the POM for this? > S3 MD5 check fails on Server Side Encryption with AWS and default key is used > ----------------------------------------------------------------------------- > > Key: HADOOP-13022 > URL: https://issues.apache.org/jira/browse/HADOOP-13022 > Project: Hadoop Common > Issue Type: Bug > Components: fs/s3 > Affects Versions: 2.8.0 > Reporter: Leonardo Contreras > > When server side encryption with "aws:kms" value and no custom key is used in S3A Filesystem, the AWSClient fails when verifing Md5: > {noformat} > Exception in thread "main" com.amazonaws.AmazonClientException: Unable to verify integrity of data upload. Client calculated content hash (contentMD5: 1B2M2Y8AsgTpgAmY7PhCfg== in base 64) didn't match hash (etag: c29fcc646e17c348bce9cca8f9d205f5 in hex) calculated by Amazon S3. You may need to delete the data stored in Amazon S3. (metadata.contentMD5: null, md5DigestStream: com.amazonaws.services.s3.internal.MD5DigestCalculatingInputStream@65d9e72a, bucketName: abuse-messages-nonprod, key: venus/raw_events/checkpoint/825eb6aa-543d-46b1-801f-42de9dbc1610/) > at com.amazonaws.services.s3.AmazonS3Client.putObject(AmazonS3Client.java:1492) > at org.apache.hadoop.fs.s3a.S3AFileSystem.createEmptyObject(S3AFileSystem.java:1295) > at org.apache.hadoop.fs.s3a.S3AFileSystem.createFakeDirectory(S3AFileSystem.java:1272) > at org.apache.hadoop.fs.s3a.S3AFileSystem.mkdirs(S3AFileSystem.java:969) > at org.apache.hadoop.fs.FileSystem.mkdirs(FileSystem.java:1888) > at org.apache.spark.SparkContext$$anonfun$setCheckpointDir$2.apply(SparkContext.scala:2077) > at org.apache.spark.SparkContext$$anonfun$setCheckpointDir$2.apply(SparkContext.scala:2074) > at scala.Option.map(Option.scala:145) > at org.apache.spark.SparkContext.setCheckpointDir(SparkContext.scala:2074) > at org.apache.spark.streaming.StreamingContext.checkpoint(StreamingContext.scala:237) > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)