@VisibleForTesting protected List<URI> resolveAndDownload(ResourceType resourceType, String value, boolean convertToUnix) throws URISyntaxException, IOException { List<URI> uris = resourceDownloader.resolveAndDownload(value, convertToUnix); if (ResourceDownloader.isHdfsUri(value)) { assert uris.size() == 1 : "There should only be one URI localized-resource."; resourceMaps.getLocalHdfsLocationMap(resourceType).put(uris.get(0).toString(), value); } return uris; }
key = ResourceDownloader.createURI(value).getAuthority(); else if (ResourceDownloader.isHdfsUri(value)) { String removedKey = removeHdfsFilesFromMapping(t, value);