0
爲例:罐子類ARG1參數3傳遞變量「ARGS」到地圖類
輸入格式ARG 1,ARG 2爲輸出格式是這樣的:
public static void main(String[] args)
{
FileInputFormat.addInputPath(conf, new Path(args[0]));
FileOutputFormat.setOutputPath(conf, new Path(args[1]));
.
.
.
.
}
我需要發送ARG3「ARGS [2]」映射類.....
public class JoinMultiMap extends MapReduceBase
implements Mapper<LongWritable, Text, Text, Text>
{
i need arg3 her
}
但什麼是getConf();在配置conf = getConf(); –
'getConf()'只是一個方便的方法,由[Configured](https://hadoop.apache.org/docs/current/api/org/apache/hadoop/conf/Configured.html)類提供,由'setConf()'方法設置的配置對象。更多信息在這裏:http://stackoverflow.com/questions/14134865/what-is-the-usage-of-configured-class-in-hadoop-programs。 – Ashrith