How to submit extra files(jars, static files) for Hadoop MapReduce job during runtime?



How to submit extra files(jars, static files) for Hadoop MapReduce job during runtime?..

Answer / Neha Agrawal

To submit additional JARs or static files for a Hadoop MapReduce job at runtime, you can use the Configuration API of the Job object. nFor example, to add a custom JAR file, set the following properties in the configuration object and pass it to the Job object:n`configuration.addFile(new Path("path_to_your_jar"));nconfiguration.setJarByClass(YourMapReduceJob.class);"

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More MapReduce Interview Questions

What is the job of blend () and repartition () in Map Reduce?

1 Answers  


When is it not recommended to use MapReduce paradigm for large

1 Answers  


How do Hadoop MapReduce works?

1 Answers  


What is shuffling and sorting in Hadoop MapReduce?

1 Answers  


Explain the input type/format in mapreduce by default?

1 Answers  


How to set mappers and reducers for Hadoop jobs?

1 Answers  


What is an input reader in reference to mapreduce?

1 Answers  


Can we rename the output file?

1 Answers  


What is the function of mapreducer partitioner?

1 Answers  


Does Partitioner run in its own JVM or shares with another process?

1 Answers  


How to get the single file as the output from MapReduce Job?

1 Answers  


What are the advantages of using mapreduce with hadoop?

1 Answers  


Categories