Return-Path: Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: (qmail 12138 invoked from network); 22 Jan 2010 10:38:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Jan 2010 10:38:07 -0000 Received: (qmail 14872 invoked by uid 500); 22 Jan 2010 10:38:05 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 14797 invoked by uid 500); 22 Jan 2010 10:38:04 -0000 Mailing-List: contact common-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-user@hadoop.apache.org Delivered-To: mailing list common-user@hadoop.apache.org Received: (qmail 14787 invoked by uid 99); 22 Jan 2010 10:38:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jan 2010 10:38:04 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [216.145.54.171] (HELO mrout1.yahoo.com) (216.145.54.171) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jan 2010 10:37:52 +0000 Received: from SNV-EXPF01.ds.corp.yahoo.com (snv-expf01.ds.corp.yahoo.com [207.126.227.250]) by mrout1.yahoo.com (8.13.6/8.13.6/y.out) with ESMTP id o0MAbSJs035280 for ; Fri, 22 Jan 2010 02:37:28 -0800 (PST) DomainKey-Signature: a=rsa-sha1; s=serpent; d=yahoo-inc.com; c=nofws; q=dns; h=received:user-agent:date:subject:from:to:message-id: thread-topic:thread-index:in-reply-to:mime-version:content-type: content-transfer-encoding:x-originalarrivaltime; b=QlJOkiL1Ex/3wOpQlkxPS3nDI5BWG0rUZYrWw9+nlLqxeFER4DCKLfz74U9NkpHH Received: from SNV-EXVS05.ds.corp.yahoo.com ([207.126.227.225]) by SNV-EXPF01.ds.corp.yahoo.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 22 Jan 2010 02:37:28 -0800 Received: from 10.80.204.32 ([10.80.204.32]) by SNV-EXVS05.ds.corp.yahoo.com ([207.126.227.45]) via Exchange Front-End Server snv-webmail.corp.yahoo.com ([207.126.227.60]) with Microsoft Exchange Server HTTP-DAV ; Fri, 22 Jan 2010 10:37:27 +0000 User-Agent: Microsoft-Entourage/12.23.0.091001 Date: Fri, 22 Jan 2010 18:37:25 +0800 Subject: Re: How to timeout HFDS commands From: Yiping Han To: Message-ID: Thread-Topic: How to timeout HFDS commands Thread-Index: AcqbTuLm0Wogx7t2qUCw/7VWwopS4g== In-Reply-To: <8211a1321001220232v23730457l1f6bba2651e233b5@mail.gmail.com> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-OriginalArrivalTime: 22 Jan 2010 10:37:28.0429 (UTC) FILETIME=[E4F1D9D0:01CA9B4E] X-Virus-Checked: Checked by ClamAV on apache.org No, I mean in java program. Thanks~ -- Yiping On 1/22/10 6:32 PM, "Jeff Zhang" wrote: > Try Ctrl+C > > > On Fri, Jan 22, 2010 at 5:50 PM, Yiping Han wrote: > >> Hi all, >> >> I'm using org.apache.hadoop.fs.FileSystem in my code for some HDFS >> operations. I would like to timeout and abort the operation if it takes too >> long (for example, copyFromLocal of a huge file). What is the best way to >> do >> this? >> >> >> Thanks~ >> --Yiping >> >> > ---------------------- Yiping Han yhan@yahoo-inc.com US phone: +1(408)349-4403 Beijing phone: +86(10)8215-9357