hadoop - Hadoop jar input path issue hadoop - Hadoop jar input path issue hadoop hadoop

hadoop - Hadoop jar input path issue


The hadoop jar command requires no command line arguments, other than maybe the main class. The command line arguments for your map/reduce job will be decided by the program itself. So if it no longer requires an HDFS input path, then you would need to change the code to not require that.

public class MyJob extends Configured implements Tool{   public void run(String[] args) throws Exception {     // ...     TextInputFormat.setInputPaths(job, new Path(args[0])); // or some other file input format     TextOutputFormat.setOutputPath(job, new Path(args[1]));   }}

So you would remove the input path statement. There is no magic in JAR'ing the job up, just change the InputFormat (which you said you did) and you should be set.