Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-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 E64089347 for ; Wed, 4 Jul 2012 04:25:35 +0000 (UTC) Received: (qmail 84965 invoked by uid 500); 4 Jul 2012 04:25:35 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 84907 invoked by uid 500); 4 Jul 2012 04:25:35 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 84885 invoked by uid 99); 4 Jul 2012 04:25:35 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jul 2012 04:25:35 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id C855F14281B for ; Wed, 4 Jul 2012 04:25:34 +0000 (UTC) Date: Wed, 4 Jul 2012 04:25:34 +0000 (UTC) From: "Tsz Wo (Nicholas), SZE (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <1217757120.1968.1341375934826.JavaMail.jiratomcat@issues-vm> In-Reply-To: <1172739738.69065.1340918384067.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Updated] (HDFS-3577) webHdfsFileSystem fails to read files with chunked transfer encoding 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/HDFS-3577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tsz Wo (Nicholas), SZE updated HDFS-3577: ----------------------------------------- Release Note: (was: Alejandro, thanks for the hint. I will try #1 then.) Alejandro, thanks for the hint. I will try #1 then. > webHdfsFileSystem fails to read files with chunked transfer encoding > -------------------------------------------------------------------- > > Key: HDFS-3577 > URL: https://issues.apache.org/jira/browse/HDFS-3577 > Project: Hadoop HDFS > Issue Type: Bug > Affects Versions: 2.0.0-alpha > Reporter: Alejandro Abdelnur > Assignee: Tsz Wo (Nicholas), SZE > Priority: Blocker > > If reading a file large enough for which the httpserver running webhdfs/httpfs uses chunked transfer encoding (more than 24K in the case of webhdfs), then the WebHdfsFileSystem client fails with an IOException with message *Content-Length header is missing*. > It looks like WebHdfsFileSystem is delegating opening of the inputstream to *ByteRangeInputStream.URLOpener* class, which checks for the *Content-Length* header, but when using chunked transfer encoding the *Content-Length* header is not present and the *URLOpener.openInputStream()* method thrown an exception. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira