Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 80134 invoked from network); 27 May 2009 04:08:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 May 2009 04:08:59 -0000 Received: (qmail 13365 invoked by uid 500); 27 May 2009 04:09:10 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 13312 invoked by uid 500); 27 May 2009 04:09:10 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 13302 invoked by uid 99); 27 May 2009 04:09:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 May 2009 04:09:10 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 May 2009 04:09:06 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9D18E234C056 for ; Tue, 26 May 2009 21:08:45 -0700 (PDT) Message-ID: <1207356041.1243397325642.JavaMail.jira@brutus> Date: Tue, 26 May 2009 21:08:45 -0700 (PDT) From: "Amareshwari Sriramadasu (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Updated: (HADOOP-5759) IllegalArgumentException when CombineFileInputFormat is used as job InputFormat In-Reply-To: <810547222.1241078970637.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-5759?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Amareshwari Sriramadasu updated HADOOP-5759: -------------------------------------------- Attachment: patch-5759-2.txt bq. 1. Is the change to addCreatedSplit() not needed anymore? {code} @@ -412,7 +417,7 @@ */ private void addCreatedSplit(JobConf job, List splitList, - List racks, + List locations, ArrayList validBlocks) { // create an input split {code} I changed the above, because racks are not passed to addCreatedSplit any more. Added rackToNodes.clear() just before returning splits from getSplits, as suggested by Dhruba. > IllegalArgumentException when CombineFileInputFormat is used as job InputFormat > ------------------------------------------------------------------------------- > > Key: HADOOP-5759 > URL: https://issues.apache.org/jira/browse/HADOOP-5759 > Project: Hadoop Core > Issue Type: Bug > Components: mapred > Reporter: Amareshwari Sriramadasu > Assignee: Amareshwari Sriramadasu > Fix For: 0.21.0 > > Attachments: patch-5759-1.txt, patch-5759-2.txt, patch-5759.txt > > > As per my understanding, CombineFileInputFormat is creating splits with rackname as split location. > When I use CombineFileInputFormat as the InputFormat for job, job initialization fails with following exception : > 2009-04-28 14:10:40,162 ERROR mapred.EagerTaskInitializationListener (EagerTaskInitializationListener.java:run(83)) - Job initialization failed: > java.lang.IllegalArgumentException: Network location name contains /: /default-rack > at org.apache.hadoop.net.NodeBase.set(NodeBase.java:76) > at org.apache.hadoop.net.NodeBase.(NodeBase.java:57) > at org.apache.hadoop.mapred.JobTracker.addHostToNodeMapping(JobTracker.java:2342) > at org.apache.hadoop.mapred.JobTracker.resolveAndAddToTopology(JobTracker.java:2336) > at org.apache.hadoop.mapred.JobInProgress.createCache(JobInProgress.java:344) > at org.apache.hadoop.mapred.JobInProgress.initTasks(JobInProgress.java:441) > at org.apache.hadoop.mapred.EagerTaskInitializationListener$InitJob.run(EagerTaskInitializationListener.java:81) > at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) > at java.lang.Thread.run(Thread.java:619) > When I changed CombineFileInputFormat to pass just rackname (without '/'), JT wrongly resolves the node as /default-rack/. > Solution is to pass hostnames holding the block(on the rack), instead of rackname. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.