Return-Path: Delivered-To: apmail-hadoop-core-user-archive@www.apache.org Received: (qmail 53628 invoked from network); 27 Jan 2009 21:25:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Jan 2009 21:25:55 -0000 Received: (qmail 71823 invoked by uid 500); 27 Jan 2009 09:38:39 -0000 Delivered-To: apmail-hadoop-core-user-archive@hadoop.apache.org Received: (qmail 71777 invoked by uid 500); 27 Jan 2009 09:38:39 -0000 Mailing-List: contact core-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-user@hadoop.apache.org Delivered-To: mailing list core-user@hadoop.apache.org Received: (qmail 71766 invoked by uid 99); 27 Jan 2009 09:38:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Jan 2009 01:38:39 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of edwincheese@gmail.com designates 209.85.200.168 as permitted sender) Received: from [209.85.200.168] (HELO wf-out-1314.google.com) (209.85.200.168) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Jan 2009 09:38:33 +0000 Received: by wf-out-1314.google.com with SMTP id 24so6289689wfg.2 for ; Tue, 27 Jan 2009 01:38:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=Q0rXGcCXUP4yimi02jBlhxb0ZFwTtYul7AgCPQA01ho=; b=WrqoGcNyevvJtKGrtsUEUHyYySiZKCT8CAtGuRJKkadwEL7/Se3iFy+UgVp3Yif35N XoBDB175J4B9IDSTLASVLCZeR7+yNtnyveAE4J9bPf+bY46uUn4uKBfVy4K/opiTa/xV apRLMvSPd72OUzlsOZZJpfbcTMlVFWQCcKMZk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=V6UF8LX7DOfwCrAjqDwUYLXhEBYIPsDSE88MWKPWb1mYrulp2HCtZRJPep8OtFjukg sTlEomKAvBg0UJUL7gKJerMX1kdiFSLpBlsLWzx810gRHHU0jE3hGy4cKHqKZT3YpWtr /y0Bg7gz3psLh67Y73OBx0LXabp2SpIYoqpSo= MIME-Version: 1.0 Received: by 10.143.34.20 with SMTP id m20mr2676209wfj.347.1233049092580; Tue, 27 Jan 2009 01:38:12 -0800 (PST) Date: Tue, 27 Jan 2009 17:38:12 +0800 Message-ID: <3593bee50901270138w5d684e0fy749869fc1b11c200@mail.gmail.com> Subject: Interrupting JobClient.runJob From: Edwin To: core-user@hadoop.apache.org Content-Type: multipart/alternative; boundary=001636e1fb0a27678b0461739dd3 X-Virus-Checked: Checked by ClamAV on apache.org --001636e1fb0a27678b0461739dd3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi I am looking for a way to interrupt a thread that entered JobClient.runJob(). The runJob() method keep polling the JobTracker until the job is completed. After reading the source code, I know that the InterruptException is caught in runJob(). Thus, I can't interrupt it using Thread.interrupt() call. Is there anyway I can interrupt a polling thread without terminating the job? If terminating the job is the only way to escape, how can I terminate the current job? Thank you very much. Regards Edwin --001636e1fb0a27678b0461739dd3--