hhajhh 发表于 2016-12-9 11:17:20

Hadoop passing custom parameters

  


在main
job.setInt("mac.value", Integer.parseInt(args));
map/reduce,一般在configure()
int aa = job.getInt("mac.value", 0);   0是返回默认值
或者:-D mac.value=5 mpinput mpoutput
 
页: [1]
查看完整版本: Hadoop passing custom parameters