How does mapreduce get the path to the file?
This article mainly introduces mapreduce how to get the path of the file, the article is very detailed, has a certain reference value, interested friends must read it!
A common practice is to get it through inputSplit, as follows:
InputSplit split = context.getInputSplit ()
However, if you use MultipleInputs, you need to convert TaggedInputSplit to InputSplit, as follows:
InputSplit split = context.getInputSplit ()
Class