how to submit jars to a 地图 reduce job

how to submit jars to a map reduce job?

there maybe two ways :

1.server side

a.place the jars to HADOOP_HOME/lib dir; or

b.setup a HADOOP_CLASSPATH to include the jars needed by a job

 

2.client side

a.create a 'fat' job jar which contains a 'lib' dir to include the jars; or

b.use the 'libjars' option to includes certain jars