public class HadoopFileSystemCacheUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HadoopFileSystemCacheUtils.FsCacheKey
Note that configuration is not a part of the key.
|
| Constructor and Description |
|---|
HadoopFileSystemCacheUtils() |
| Modifier and Type | Method and Description |
|---|---|
static HadoopLazyConcurrentMap<HadoopFileSystemCacheUtils.FsCacheKey,FileSystem> |
createHadoopLazyConcurrentMap()
A common static factory method.
|
static FileSystem |
fileSystemForMrUserWithCaching(URI uri,
Configuration cfg,
HadoopLazyConcurrentMap<HadoopFileSystemCacheUtils.FsCacheKey,FileSystem> map)
Common method to get the V1 file system in MapRed engine.
|
public static HadoopLazyConcurrentMap<HadoopFileSystemCacheUtils.FsCacheKey,FileSystem> createHadoopLazyConcurrentMap()
public static FileSystem fileSystemForMrUserWithCaching(@Nullable URI uri, Configuration cfg, HadoopLazyConcurrentMap<HadoopFileSystemCacheUtils.FsCacheKey,FileSystem> map) throws IOException
MRJobConfig.USER_NAME property.
The file systems are created and cached in the given map upon first request.uri - The file system uri.cfg - The configuration.map - The caching map.IOException - On error.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.1-p166 Release Date : September 3 2019