从servlet运行Mapreduce作业

时间:2012-10-26 11:19:30

标签: java hadoop mapreduce

我们如何从servlet触发map reduce作业?我有一个jsp页面,它接收用户的某些参数。这些参数用作Map Reduce作业的输入。我该如何完成这项任务?

根据http://answers.mapr.com/questions/2506/submit-mapreduce-job-remotely

的建议

我尝试设置以下2个属性,

conf.set(fs.default.name, <the ip/port>) 
conf.set(mapred.job.tracker, <the ip/port>)

不幸的是,它引发了以下异常,我无法解决这个问题

java.io.IOException:无法初始化Cluster。请检查您的配置mapreduce.framework.name和相应的服务器地址。

0 个答案:

没有答案