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 71636200BE3 for ; Thu, 8 Dec 2016 00:36:03 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 70129160B30; Wed, 7 Dec 2016 23:36:03 +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 B8ADF160B2B for ; Thu, 8 Dec 2016 00:36:02 +0100 (CET) Received: (qmail 69294 invoked by uid 500); 7 Dec 2016 23:36:01 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 69072 invoked by uid 99); 7 Dec 2016 23:36:01 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Dec 2016 23:36:01 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 538CF2C03E8 for ; Wed, 7 Dec 2016 23:36:01 +0000 (UTC) Date: Wed, 7 Dec 2016 23:36:01 +0000 (UTC) From: "Weiwei Yang (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-11189) WebHDFS and FollowRedirects MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 07 Dec 2016 23:36:03 -0000 [ https://issues.apache.org/jira/browse/HDFS-11189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15730297#comment-15730297 ] Weiwei Yang commented on HDFS-11189: ------------------------------------ Hi [~guadilla] If you have an error stack trace, that will help to explain the problem. At mean time I am running out of idea about what would be the root cause of this issue, I cannot make any fix if the issue can not be reproduced. I'll let others see if they have any more ideas. > WebHDFS and FollowRedirects > --------------------------- > > Key: HDFS-11189 > URL: https://issues.apache.org/jira/browse/HDFS-11189 > Project: Hadoop HDFS > Issue Type: Bug > Components: webhdfs > Affects Versions: 2.7.3 > Environment: We are using webhdfs from a j2ee environment with java 6. In the web application we have a lot of libraries: spring, jersey, jackson... > Reporter: Oscar Guadilla > Attachments: WebHdfsFileSystem.java > > > In some cases with simple operations (get file - non two step operation) we detect that FollowRedirects flag of http comes as "false" and it makes webhdfs crash. > We don't really know which library change this behavior and it is really strange because the change is done directly in the jvm because in other wars/ears of the same j2ee server it fails also. If we restart the j2ee server it starts working again. > To fix the problem we changed the WebHdfsFileSystem class adding "setInstanceFollowRedirects(true)" in the connection management instead of supposing that it should be true and it works fine. > The same problem arises both in 1.x and 2.x webhdfs. We didn't test in 3.x > Could you fix it? We did it in our environment but it would fine in it could be included in the next releases. > Thanks in advance, > Oscar -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org