| Package | Description | 
|---|---|
| org.apache.hadoop.yarn.api.records | |
| org.apache.hadoop.yarn.client.api | |
| org.apache.hadoop.yarn.util | 
| Modifier and Type | Method and Description | 
|---|---|
| static URL | URL. fromPath(Path path) | 
| static URL | URL. fromURI(URI uri) | 
| abstract URL | LocalResource. getResource()Get the location of the resource to be localized. | 
| static URL | URL. newInstance(String scheme,
           String host,
           int port,
           String file) | 
| Modifier and Type | Method and Description | 
|---|---|
| static LocalResource | LocalResource. newInstance(URL url,
           LocalResourceType type,
           LocalResourceVisibility visibility,
           long size,
           long timestamp) | 
| static LocalResource | LocalResource. newInstance(URL url,
           LocalResourceType type,
           LocalResourceVisibility visibility,
           long size,
           long timestamp,
           boolean shouldBeUploadedToSharedCache) | 
| static LocalResource | LocalResource. newInstance(URL url,
           LocalResourceType type,
           LocalResourceVisibility visibility,
           long size,
           long timestamp,
           String pattern) | 
| static LocalResource | LocalResource. newInstance(URL url,
           LocalResourceType type,
           LocalResourceVisibility visibility,
           long size,
           long timestamp,
           String pattern,
           boolean shouldBeUploadedToSharedCache) | 
| abstract void | LocalResource. setResource(URL resource)Set location of the resource to be localized. | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract URL | SharedCacheClient. use(ApplicationId applicationId,
   String resourceKey)
 The method to claim a resource with the  SharedCacheManager.The client uses a checksum to identify the resource and anApplicationIdto identify which application will be using the
 resource. | 
| Modifier and Type | Method and Description | 
|---|---|
| static URL | ConverterUtils. getYarnUrlFromPath(Path path)Deprecated.  | 
| static URL | ConverterUtils. getYarnUrlFromURI(URI uri)Deprecated.  | 
| Modifier and Type | Method and Description | 
|---|---|
| static Path | ConverterUtils. getPathFromYarnURL(URL url)Deprecated.  | 
Copyright © 2023 Apache Software Foundation. All rights reserved.