读取sequencefile,在设置输入路径的时候,如果设置成
SequenceFileInputFormat.addInputPath(job, new Path(args[0]));
则会把文件拷贝两份。
正确的还是应该设置成:
FileInputFormat.setInputPaths(job, new Path(args[0]));
记一下
读取sequencefile,在设置输入路径的时候,如果设置成
SequenceFileInputFormat.addInputPath(job, new Path(args[0]));
则会把文件拷贝两份。
正确的还是应该设置成:
FileInputFormat.setInputPaths(job, new Path(args[0]));
记一下