Hadoop 2.0/0.23 are Source compatible with 1.0 but not binary compatible. You will need to recompile your application against 0.23.5 for this to work. Sorry for the inconvenience and hopefully the APIs are stable enough now that it will not happen again.
--Bobby On 12/19/12 6:36 PM, "anil chaurasia" <[email protected]> wrote: >Hi All, > >I have a small prototype application that was running against 1.0.X >version >of hadoop. >We wanted to try out the hadoop-yarn to get some number using the yarn >release and setup a single node hadoop system. > >When I run the job with hadoop 1.0.X it works fine but when I try to run >it >against the 0.23.5 I get following error: > >Exception in thread "main" java.lang.IncompatibleClassChangeError: Found >interface org.apache.hadoop.mapreduce.JobContext, but class was expected > at >com.symantec.casey.RulesetInputFormat.getSplits(RulesetInputFormat.java:33 >) > at >org.apache.hadoop.mapreduce.JobSubmitter.writeNewSplits(JobSubmitter.java: >454) > at >org.apache.hadoop.mapreduce.JobSubmitter.writeSplits(JobSubmitter.java:471 >) > at >org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.ja >va:366) > at org.apache.hadoop.mapreduce.Job$11.run(Job.java:1218) > at org.apache.hadoop.mapreduce.Job$11.run(Job.java:1215) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Unknown Source) > at >org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation. >java:1212) > at org.apache.hadoop.mapreduce.Job.submit(Job.java:1215) > at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:1236) > at com.symantec.casey.CaseyRunner.run(CaseyRunner.java:154) > at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:69) > at com.symantec.casey.CaseyRunner.main(CaseyRunner.java:463) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at org.apache.hadoop.util.RunJar.main(RunJar.java:208) > > >I am sure that there are significant changes to the hadoop framework in >YARN release. >So I decided to change the code as per the new interface. > >But when I try to use the maven to import the dependecies, maven complains >about the artifacts. ( The maven repo only has pom.xml files and no jar >files are included . ) > >I was using maven dependency hadoop-core for ( 1.0.X) and it was working >so >I though I would get the yarn-core/yarn-project/hadoop-yarn but all of >them >had missing artifacts. > >One thing I did notice that the other yarn modules such as >hadoop-yarn-common did have artifcats. > >So, I wanted to know what are all the modules required to build a hadoop >application using hadoop-yarn. > >Is there a document on how to write a sample app using yarn somewhere on >the wiki ? IF there is no wiki, Could someone please point me to some >documents where I can find information on how to write a new app using >hadoop-yarn. > >Appreciate your help. > > >Thanks
