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
By parsing the mapreduce_map_input_file(new) or map_input_file(deprecated) environment variable, you will get the map input file name.
mapreduce_map_input_file
map_input_file
Notice: The two environment variables are case-sensitive, all letters are lower-case.