Spring for Apache Hadoop

org.springframework.yarn.fs
Interface ResourceLocalizer

All Known Subinterfaces:
SmartResourceLocalizer
All Known Implementing Classes:
AbstractResourceLocalizer, DefaultResourceLocalizer

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.

Author:
Janne Valkealahti
See Also:
SmartResourceLocalizer

Method Summary
 java.util.Map<java.lang.String,org.apache.hadoop.yarn.api.records.LocalResource> getResources()
          Gets a map of LocalResource instances.
 

Method Detail

getResources

java.util.Map<java.lang.String,org.apache.hadoop.yarn.api.records.LocalResource> getResources()
Gets a map of 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.

Returns:
The map containing LocalResource instances

Spring for Apache Hadoop