private static RegionLocator getRegionLocator(TableName tableName, Configuration conf,
    Connection conn) throws IOException {
    if (SnapshotRegionLocator.shouldUseSnapshotRegionLocator(conf, tableName)) {
      return SnapshotRegionLocator.create(conf, tableName);
    }

    return conn.getRegionLocator(tableName);
  }
Main entry point.
@param args The command line parameters.
@throws Exception When running the job fails.
hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/mapreduce/WALPlayer.java