hadoop-hdfs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harshit Mathur <mathursh...@gmail.com>
Subject Re: Packaging multiple map reduce jobs into one Jar
Date Wed, 01 Jul 2015 04:02:00 GMT
Yes you can do this.
You can have multiple main in your jar, so you can run,
            hadoop jar jarname.jar packagename.classname arguments

            for eg: hadoop jar myJar.jar my.testapp.code1.MyMain1 arg1 arg2
                      hadoop jar myJar.jar my.testapp.code2.MyMain2 arg1

On Wed, Jul 1, 2015 at 3:51 AM, Nishanth S <chinchu2884@gmail.com> wrote:

> Hello,
> Is there a  way I can package multiple map reduce jobs  into one jar file
> and  then invoke them using hadoop jar.I am using maven as the build
> tool.What should be the main class in the manifest file in this case?.
> Thanks,
> Nishan

Harshit Mathur

View raw message