public interface ResourceLocalizer
ResourceLocalizer is a simple interface used during
a container launch to determine a localized resources. This
loosely follows requirements for YARN's file distribution of
LocalResource instances.SmartResourceLocalizer| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,org.apache.hadoop.yarn.api.records.LocalResource> |
getResources()
Gets a map of
LocalResource instances. |
java.util.Map<java.lang.String,org.apache.hadoop.yarn.api.records.LocalResource> getResources()
LocalResource instances. Underlying
instances of LocalResources needs to be fully
initialised including resource size and timestamp.
Calling this method should do all needed preparation work
needed to return LocalResources.
LocalResource instances