hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From T Vinod Gupta <tvi...@readypulse.com>
Subject how to specify class name to run in mapreduce job
Date Tue, 10 Jan 2012 23:26:14 GMT
how can i specify which class' main method to run as a job when i do
mapreduce? lets say my jar has 4 classes and each one of them has a main
method. i want to pass the class name in the 'hadoop jar <jar file>
<classname>' command. this will be similar to running stock tools inside
hbase or other hadoop jars that out of the box.
currently, i solve this problem by setting the main in the project and
building the jar and running it. but i want to be able to flip that at run
time instead of compile time.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message