@InterfaceAudience.Public public static interface ExportSnapshot.FileLocationResolver
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.| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getLocationsForInputFiles(Collection<Pair<org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotFileInfo,Long>> files) |
Set<String> getLocationsForInputFiles(Collection<Pair<org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotFileInfo,Long>> files)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.