Return-Path: Delivered-To: apmail-hadoop-mapreduce-dev-archive@minotaur.apache.org Received: (qmail 8994 invoked from network); 9 Sep 2009 16:52:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Sep 2009 16:52:03 -0000 Received: (qmail 35154 invoked by uid 500); 9 Sep 2009 16:52:03 -0000 Delivered-To: apmail-hadoop-mapreduce-dev-archive@hadoop.apache.org Received: (qmail 35078 invoked by uid 500); 9 Sep 2009 16:52:03 -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 35068 invoked by uid 99); 9 Sep 2009 16:52:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Sep 2009 16:52:03 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of amolanand@students.iiit.ac.in designates 121.242.23.201 as permitted sender) Received: from [121.242.23.201] (HELO students.iiit.ac.in) (121.242.23.201) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Sep 2009 16:51:52 +0000 MailScanner-NULL-Check: 1253119890.29905@G9ggUR8hNAPUq++34Xj6zA Received: from students.iiit.ac.in (localhost.localdomain [127.0.0.1]) by students.iiit.ac.in (8.13.8/8.13.8) with ESMTP id n89GpSrb019346 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 9 Sep 2009 22:21:28 +0530 Received: (from apache@localhost) by students.iiit.ac.in (8.13.8/8.14.1/Submit) id n89GpSEC019336; Wed, 9 Sep 2009 22:21:28 +0530 From: amolanand@students.iiit.ac.in X-Authentication-Warning: students.iiit.ac.in: apache set sender to amolanand@localhost using -f Received: from 59.96.98.169 (SquirrelMail authenticated user amolanand) by students.iiit.ac.in with HTTP; Wed, 9 Sep 2009 22:21:28 +0530 (IST) Message-ID: <1555.59.96.98.169.1252515088.squirrel@students.iiit.ac.in> In-Reply-To: <31270.196.15.16.20.1252326883.squirrel@students.iiit.ac.in> References: <31270.196.15.16.20.1252326883.squirrel@students.iiit.ac.in> Date: Wed, 9 Sep 2009 22:21:28 +0530 (IST) Subject: Re: 0.20 - Getting instantiation Exception at ReflectionUtils.newInstance To: mapreduce-dev@hadoop.apache.org User-Agent: SquirrelMail/1.4.8-4.el5 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on students.iiit.ac.in X-yoursite-MailScanner-Information: Please contact the IIIT Server Room for more information X-MailScanner-ID: n89GpSrb019346 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: amolanand@students.iiit.ac.in X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-1.4 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.2.5, No Hi, resolved the issue by changing the input format and output format classes from FileInputFormat to TextInputFormat class. :) Thanks! Amol. > Hi, > > I have set up the hadoop 0.20 as mentioned at > http://hadoop.apache.org/common/docs/r0.20.0/quickstart.html > > I have set up the config files as mentioned in the link. The start-all.sh > starts alright and i am able to see my task-tracker and namenode. > > I may my job jar with classes for Mapper, reducer and partitioner. I have > complied my code along with hadoop core and common.cli jars. > > when i run my code with command line: > > aatiwari@AATIWARI-LAP /cygdrive/d/cloud/hadoop-0.20.0$ bin/hadoop jar > ../sort.jar sort.Sort 2input 2output > > I get the following error: > > 09/09/07 17:56:01 WARN mapred.JobClient: No job jar file set. User > classes may not be found. See JobConf(Class) or JobConf#setJar(String). > > Exception in thread "main" java.lang.RuntimeException: > java.lang.InstantiationException > at > org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:115) > at > org.apache.hadoop.mapred.JobClient.writeNewSplits(JobClient.java:882) > at > org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:779) > at org.apache.hadoop.mapreduce.Job.submit(Job.java:432) > at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:447) > at sort.Sort.main(Sort.java:94) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.apache.hadoop.util.RunJar.main(RunJar.java:156) > Caused by: java.lang.InstantiationException > at > sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance > (InstantiationExceptionConstructorAccessorImpl.java:30) > at java.lang.reflect.Constructor.newInstance(Constructor.java:513) > at > org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.ja > va:113) > ... 10 more > > Can anyone help me with whats going wrong? > > Thanks! > AMol. > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.