FileInputFormat.setInputPaths(job, new Path("hdfs://single:9000/test/student_ext/student.txt"));
FileOutputFormat.setOutputPath(job, new Path("hdfs://single:9000/test/student_ext/test"));

这篇文章介绍了如何在Hadoop分布式文件系统(HDFS)上使用Hadoop Job进行文件操作,具体展示了如何设置Job的输入路径为student.txt,以及将输出结果保存到test目录下。
FileInputFormat.setInputPaths(job, new Path("hdfs://single:9000/test/student_ext/student.txt"));
FileOutputFormat.setOutputPath(job, new Path("hdfs://single:9000/test/student_ext/test"));


被折叠的 条评论
为什么被折叠?