Get the App
SLTechnology News&Howtos  ›  Servers  › 

How does mapreduce get the path to the file?

Shulou Source: shulou.com Published: 2022-05-31 18:58:08 09月21日 Update

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

Tags: Documents paths content articles codes values practices interests methods multiple guys partners more knowledge industry information information channels channels will be published Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info OPPO Reno MySQL Redmi Microsoft