Get input file name in streaming hadoop program

后端 未结 3 1150
面向向阳花
面向向阳花 2020-12-28 11:59

I am able to find the name if the input file in a mapper class using FileSplit when writing the program in Java.

Is there a corresponding way to do this when I write

3条回答
  •  旧时难觅i
    2020-12-28 12:26

    By parsing the mapreduce_map_input_file(new) or map_input_file(deprecated) environment variable, you will get the map input file name.

    Notice:
    The two environment variables are case-sensitive, all letters are lower-case.

提交回复
热议问题