private static List<String> calculateLocationsForInputSplit(Configuration conf,
    TableDescriptor htd, RegionInfo hri, Path tableDir) throws IOException {
    return getBestLocations(conf, HRegion.computeHDFSBlocksDistribution(conf, htd, hri, tableDir));
  }
Compute block locations for snapshot files (which will get the locations for referred hfiles)
only when localityEnabled is true.
hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/mapreduce/TableSnapshotInputFormatImpl.java