How to run or submit MapReduce Job to Hadoop in my own program?

2011-05-17 Thread Felix . 徐
Hi,all..How can I run a MR job though my own program instead of using console to submit a job to a real Hadoop env? I write code like this, this program works fine but i don't think it ran in my Hadoop env,since nothing was produced in hadoop logs folder. public int run(String[] args) throws

RE: How to run or submit MapReduce Job to Hadoop in my own program?

2011-05-17 Thread praveen.peddi
Hi there, I think you got the run(String[] args) method right but in the main method you are not calling your run method but ToolRunner.run. You need to invoke your method in order to point to localhost:54310 otherwise it will read those properties from the default hadoop conf. Praveen