MapReduce main接口设置和运行命令分别如下,请问MapR...
MapReduce main接口设置和运行命令分别如下,请问MapReduce的输入文件为()
public void main (string[] args)
{
String[] otherArgs = new GeneriOptionsParser(conf, args).getRemainingArgs();
FileInputFormat.addInputPath(job, newPath(otherArgs[0]));
FileOutputFormat.setOutputPath(job, newPath(otherArgs[1]));
}
命令:
hadoop jar WordCount.jar /user/hadoop/hdfs/test.txt
/user/hadoop/hdfs/out
A. WordCount.jar
B. /user/hadoop
C. /user/hadoop/hdfs/test.txt
D. /user/hadoop/hdfs/out
C