From mapreduce-dev-return-3771-apmail-hadoop-mapreduce-dev-archive=hadoop.apache.org@hadoop.apache.org Fri Jul 8 05:30:01 2011 Return-Path: X-Original-To: apmail-hadoop-mapreduce-dev-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 898AE6230 for ; Fri, 8 Jul 2011 05:30:01 +0000 (UTC) Received: (qmail 81246 invoked by uid 500); 8 Jul 2011 05:29:57 -0000 Delivered-To: apmail-hadoop-mapreduce-dev-archive@hadoop.apache.org Received: (qmail 80636 invoked by uid 500); 8 Jul 2011 05:29:43 -0000 Mailing-List: contact mapreduce-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-dev@hadoop.apache.org Delivered-To: mailing list mapreduce-dev@hadoop.apache.org Received: (qmail 80593 invoked by uid 99); 8 Jul 2011 05:29:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jul 2011 05:29:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jul 2011 05:29:37 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id A1ED04CB28 for ; Fri, 8 Jul 2011 05:29:16 +0000 (UTC) Date: Fri, 8 Jul 2011 05:29:16 +0000 (UTC) From: "Amareshwari Sriramadasu (JIRA)" To: mapreduce-dev@hadoop.apache.org Message-ID: <1148629513.10124.1310102956660.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (MAPREDUCE-2660) MR-279: org.apache.hadoop.mapred.CombineFileInputFormat.getSplits() throws ArrayStoreException MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 MR-279: org.apache.hadoop.mapred.CombineFileInputFormat.getSplits() throws ArrayStoreException ---------------------------------------------------------------------------------------------- Key: MAPREDUCE-2660 URL: https://issues.apache.org/jira/browse/MAPREDUCE-2660 Project: Hadoop Map/Reduce Issue Type: Bug Reporter: Amareshwari Sriramadasu In branch MR-279, org.apache.hadoop.mapred.getSplits() throws RuntimeException:ArrayStoreException The following code in trunk: {noformat} public InputSplit[] getSplits(JobConf job, int numSplits) throws IOException { List newStyleSplits = super.getSplits(new Job(job)); InputSplit[] ret = new InputSplit[newStyleSplits.size()]; for(int pos = 0; pos < newStyleSplits.size(); ++pos) { org.apache.hadoop.mapreduce.lib.input.CombineFileSplit newStyleSplit = (org.apache.hadoop.mapreduce.lib.input.CombineFileSplit) newStyleSplits.get(pos); ret[pos] = new CombineFileSplit(job, newStyleSplit.getPaths(), newStyleSplit.getStartOffsets(), newStyleSplit.getLengths(), newStyleSplit.getLocations()); } return ret; } {noformat} got changed to {noformat} public InputSplit[] getSplits(JobConf job, int numSplits) throws IOException { return super.getSplits(new Job(job)).toArray(new InputSplit[0]); } {noformat} Code in trunk works fine. We should change the code in MR-279 to the same in trunk. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira