From common-issues-return-149450-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Wed Mar 7 20:14:03 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 56B77180656 for ; Wed, 7 Mar 2018 20:14:03 +0100 (CET) Received: (qmail 35604 invoked by uid 500); 7 Mar 2018 19:14:02 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 35593 invoked by uid 99); 7 Mar 2018 19:14:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Mar 2018 19:14:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id B6234C0D75 for ; Wed, 7 Mar 2018 19:14:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.311 X-Spam-Level: X-Spam-Status: No, score=-110.311 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id ZjKcSSIvhkS0 for ; Wed, 7 Mar 2018 19:14:00 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id C34FD5F2EC for ; Wed, 7 Mar 2018 19:14:00 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 60ACCE008D for ; Wed, 7 Mar 2018 19:14:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 1C6CE253F7 for ; Wed, 7 Mar 2018 19:14:00 +0000 (UTC) Date: Wed, 7 Mar 2018 19:14:00 +0000 (UTC) From: "Hudson (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-15267) S3A multipart upload fails when SSE-C encryption is enabled MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-15267?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D16= 390051#comment-16390051 ]=20 Hudson commented on HADOOP-15267: --------------------------------- SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #13787 (See [https= ://builds.apache.org/job/Hadoop-trunk-Commit/13787/]) HADOOP-15267. S3A multipart upload fails when SSE-C encryption is (stevel: = rev e0307e53e2110cb6b418861a7471e97a013c16e2) * (edit) hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/Moc= kS3AFileSystem.java * (edit) hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/S3A= FileSystem.java * (add) hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/scal= e/ITestS3AHugeFilesSSECDiskBlocks.java > S3A multipart upload fails when SSE-C encryption is enabled > ----------------------------------------------------------- > > Key: HADOOP-15267 > URL: https://issues.apache.org/jira/browse/HADOOP-15267 > Project: Hadoop Common > Issue Type: Sub-task > Components: fs/s3 > Affects Versions: 3.1.0 > Environment: Hadoop 3.1 Snapshot > Reporter: Anis Elleuch > Assignee: Anis Elleuch > Priority: Critical > Fix For: 3.1.0 > > Attachments: HADOOP-15267-001.patch, HADOOP-15267-002.patch, HADO= OP-15267-003.patch > > > When I enable SSE-C encryption in Hadoop 3.1 and set=C2=A0 fs.s3a.multipa= rt.size to 5 Mb, storing data in AWS doesn't work anymore. For example, run= ning the following code: > {code} > >>> df1 =3D spark.read.json('/home/user/people.json') > >>> df1.write.mode("overwrite").json("s3a://testbucket/people.json") > {code} > shows the following exception: > {code:java} > com.amazonaws.services.s3.model.AmazonS3Exception: The multipart upload i= nitiate requested encryption. Subsequent part requests must include the app= ropriate encryption parameters. > {code} > After some investigation, I discovered that hadoop-aws doesn't send SSE-C= headers in Put Object Part as stated in AWS specification: [https://docs.a= ws.amazon.com/AmazonS3/latest/API/mpUploadUploadPart.html] > {code:java} > If you requested server-side encryption using a customer-provided encrypt= ion key in your initiate multipart upload request, you must provide identic= al encryption information in each part upload using the following headers. > {code} > =C2=A0 > You can find a patch attached to this issue for a better clarification of= the problem. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-issues-help@hadoop.apache.org