Interface ExportSnapshot.FileLocationResolver

All Known Implementing Classes:
ExportSnapshot.NoopFileLocationResolver
Enclosing class:
ExportSnapshot

@Public public static interface ExportSnapshot.FileLocationResolver
If desired, you may implement a FileLocationResolver in order to influence the _location_ metadata attached to each InputSplit that ExportSnapshot will submit to YARN. The method getLocationsForInputFiles(Collection) method is called once for each InputSplit being constructed. Whatever is returned will ultimately be reported by that split's InputSplit.getLocations() method. This can be used to encourage YARN to schedule the ExportSnapshot's mappers on rack-local or host-local NodeManagers. To use this, pass the --file-location-resolver argument with the fully qualified class name of an implementation of FileLocationResolver that's on the classpath. If this argument is not used, no locations will be attached to the InputSplits.