I am trying to launch a map reduce job from an application that implements the Tool interface. The application does few other things which are like preconditions for the map reduce job.
This class use some third party libs, How do I add those jars to the classpath while running the jar using the command: hadoop jar < myjar > [args]
From this Cloudera's post I tried to set the HADOOP_CLASSPATH env var to the third party jar, but it did not work out. The third party jars mentioned above are only required by the class that launch the job and not by Mapper/Reducer classes. So I do not need to put them in Distributed Cache.
When I copy these third party jars that I need under $HADOOP_HOME/lib, it works, but I need a cleaner solultion.
Thanks in aniticipation.
Note - I know that putting all the third party jars in a lib directory in my-map-reduce-job.jar jar would work, but I do not have that liberty, the jar gets created using Maven and I want these third party jars outside of my-map-reduce-job.jar