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 8BD2118263 for ; Mon, 22 Feb 2016 15:01:54 +0000 (UTC) Received: (qmail 68221 invoked by uid 500); 22 Feb 2016 14:15:34 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 68185 invoked by uid 500); 22 Feb 2016 14:15:34 -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 68166 invoked by uid 99); 22 Feb 2016 14:15:34 -0000 Received: from Unknown (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Feb 2016 14:15:34 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 2E7972C1F7E for ; Mon, 22 Feb 2016 14:15:18 +0000 (UTC) Date: Mon, 22 Feb 2016 14:15:18 +0000 (UTC) From: "Austin Donnelly (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HADOOP-12827) WebHdfs socket timeouts should be configurable 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-12827?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Austin Donnelly updated HADOOP-12827: ------------------------------------- Status: Patch Available (was: Open) Here's a patch which fixes this issue. Testing: no new test code added, since this only adds two config options. Manual testing: I tested the following scenarios: * New config not present. Client timeout verified unchanged at 60s. * New config present: 30s for connect timeout, 2m for read timeout: - WebHdfs server not listening => client timeout at 30s as expected. - WebHdfs server up, but modified to stall data => client timeout at 2m as expected. - WebHdfs server up, operating normally => client operates normally. * Also tested with distCp. Before patch, some transfers would timeout, after patch, set longer (30m) read timeout, and distCp completes without timeouts. > WebHdfs socket timeouts should be configurable > ---------------------------------------------- > > Key: HADOOP-12827 > URL: https://issues.apache.org/jira/browse/HADOOP-12827 > Project: Hadoop Common > Issue Type: Improvement > Components: fs > Environment: all > Reporter: Austin Donnelly > Assignee: Austin Donnelly > Labels: easyfix, newbie > Original Estimate: 0h > Remaining Estimate: 0h > > WebHdfs client connections use sockets with fixed timeouts of 60 seconds to connect, and 60 seconds for reads. > This is a problem because I am trying to use WebHdfs to access an archive storage system which can take minutes to hours to return the requested data over WebHdfs. > The fix is to add new configuration file options to allow these 60s defaults to be customised in hdfs-site.xml. > If the new configuration options are not present, the behavior is unchanged from before. -- This message was sent by Atlassian JIRA (v6.3.4#6332)