Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id DA6BB200D04 for ; Mon, 11 Sep 2017 21:26:07 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D8E1A1609B7; Mon, 11 Sep 2017 19:26:07 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 2B6D71609C4 for ; Mon, 11 Sep 2017 21:26:07 +0200 (CEST) Received: (qmail 14961 invoked by uid 500); 11 Sep 2017 19:26:05 -0000 Mailing-List: contact dev-help@flume.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flume.apache.org Delivered-To: mailing list dev@flume.apache.org Received: (qmail 14871 invoked by uid 99); 11 Sep 2017 19:26:05 -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; Mon, 11 Sep 2017 19:26:05 +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 B7704CD12C for ; Mon, 11 Sep 2017 19:26:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.502 X-Spam-Level: X-Spam-Status: No, score=-99.502 tagged_above=-999 required=6.31 tests=[KAM_NUMSUBJECT=0.5, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, 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 AExTGtRwy3y1 for ; Mon, 11 Sep 2017 19:26:01 +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 3490A5F6BE for ; Mon, 11 Sep 2017 19:26:01 +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 B0B76E0DFE for ; Mon, 11 Sep 2017 19:26: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 41C3724147 for ; Mon, 11 Sep 2017 19:26:00 +0000 (UTC) Date: Mon, 11 Sep 2017 19:26:00 +0000 (UTC) From: "Denes Arvay (JIRA)" To: dev@flume.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLUME-3174) HdfsSink AWS S3A authentication does not work on JDK 8 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 11 Sep 2017 19:26:08 -0000 [ https://issues.apache.org/jira/browse/FLUME-3174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16161828#comment-16161828 ] Denes Arvay commented on FLUME-3174: ------------------------------------ Thanks for reporting and investigating this [~marcellhegedus]. Although you set the priority to "minor" I think this is more like a blocker for the 1.8 release (or at least critical), what do you think? We should move forward with bumping the joda-time version, I'm linking this ticket with FLUME-3173 (Upgrade joda-time). > HdfsSink AWS S3A authentication does not work on JDK 8 > ------------------------------------------------------ > > Key: FLUME-3174 > URL: https://issues.apache.org/jira/browse/FLUME-3174 > Project: Flume > Issue Type: Bug > Reporter: Marcell Hegedus > Priority: Minor > > Flume writing to S3A with the following Hdfs Sink configuration fails with AmazonS3Exception: Forbidden (Service: Amazon S3; Status Code: 403; Error Code: 403 Forbidden... > {code} > a1.sinks = k1 > a1.sinks.k1.channel = c1 > a1.sinks.k1.type = hdfs > a1.sinks.k1.hdfs.path = s3a://testflume/logs > {code} > AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY are provided either in flume-env or in core-site.xml and running "hdfs dfs -ls s3a://testflume/logs" works properly. > The cause and the fix is documented in [hadoop-aws/index.md|https://github.com/apache/hadoop/blob/trunk/hadoop-tools/hadoop-aws/src/site/markdown/tools/hadoop-aws/index.md#authentication-failures-when-running-on-java-8u60] > {quote}A change in the Java 8 JVM broke some of the toString() string generation of Joda Time 2.8.0, which stopped the Amazon S3 client from being able to generate authentication headers suitable for validation by S3. > Fix: Make sure that the version of Joda Time is 2.8.1 or later, or use a new version of Java 8.{quote} > Tested that authentication is successful with > * JDK 7 > * JDK 8 + joda-time updated to v2.9.6. -- This message was sent by Atlassian JIRA (v6.4.14#64029)