Using multiple mapper inputs in one streaming job on hadoop?

后端 未结 2 636
醉酒成梦
醉酒成梦 2020-12-20 01:43

In java I would use:

MultipleInputs.addInputPath(conf, path, inputFormatClass, mapperClass)

to add multiple inputs with a differ

2条回答
  •  悲&欢浪女
    2020-12-20 02:25

    You can use multiple -input options to specify multiple input paths:

    hadoop jar hadoop-streaming.jar -input foo.txt -input bar.txt ...
    

提交回复
热议问题