Re: Simple Hadoop program build with Maven

2011-10-08 Thread Bochun Bai
To make a jar bundled big jar file using maven I suggest this plugin: http://anydoby.com/fatjar/usage.html But I prefer not doing so, because the classpath order is different with different environment. I guess your old myHadoopProgram.jar should contains Main-Class meta info. So the

Re: Simple Hadoop program build with Maven

2011-10-08 Thread Periya.Data
Fantastic ! Worked like a charm. Thanks much Bochun. For those who are facing similar issues, here is the command and output: $ hadoop jar ../MyHadoopProgram.jar com.ABC.MyHadoopProgram -libjars ~/CDH3/extJars/json-rpc-1.0.jar /usr/PD/input/sample22.json /usr/PD/output 11/10/08 17:51:45 INFO

Simple Hadoop program build with Maven

2011-10-07 Thread Periya.Data
Hi all, I am migrating from ant builds to maven. So, brand new to Maven and do not yet understand many parts of it. Problem: I have a perfectly working map-reduce program (working by ant build). This program needs an external jar file (json-rpc-1.0.jar). So, when I run the program, I do the