private void loadSharelib(Map<String, List<Path>> tmpShareLibMap, Map<String, Map<Path, Path>> tmpSymlinkMapping,
String shareLibKey, String pathList[]) throws IOException {
List<Path> listOfPaths = new ArrayList<Path>();
Map<Path, Path> symlinkMappingforAction = new HashMap<Path, Path>();
HadoopShims fileSystem = new HadoopShims(fs);
for (String dfsPath : pathList) {
Path path = new Path(dfsPath);
getPathRecursively(fs, path, listOfPaths);
if (HadoopShims.isSymlinkSupported() && fileSystem.isSymlink(path)) {
symlinkMappingforAction.put(path, fileSystem.getSymLinkTarget(path));
}
}
if (HadoopShims.isSymlinkSupported()) {
LOG.info("symlink for " + shareLibKey + ":" + symlinkMappingforAction);
tmpSymlinkMapping.put(shareLibKey, symlinkMappingforAction);