Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我有两个文件要以不同的格式映射。一个是序列文件,另一个是纯文本文件。有没有办法-inputFormat分别为每个指定一个?或者我还应该做些什么来映射两者?
-inputFormat
这就是 MultipleInputs 类的用途。对于每个输入,您调用 MultipleInputs:
MultipleInputs.addInputPath(job, inputPath, inputFormatClass, mapperClass);