user3855506
user3855506

Reputation: 1

Map Reduce execution in eclipse

can anyone please tell how to set the HDFS file path in the arguments tab in eclipse. So that the below code wont give out of index exception.

FileInputFormat.addInputPath(job, new Path(otherArgs[0]));
FileOutputFormat.setOutputPath(job, new Path(otherArgs[1]));

Upvotes: 0

Views: 44

Answers (1)

Durga Viswanath Gadiraju
Durga Viswanath Gadiraju

Reputation: 3956

You need to use run configurations. Right click on the program, go to run configurations, use java application. After choosing right project and right program with main function, you need to go to VM Arguments and pass the arguments.

Upvotes: 1

Related Questions