public static int getFormatVersion(Configuration conf) {
    int version = conf.getInt(FORMAT_VERSION_KEY, MAX_FORMAT_VERSION);
    checkFormatVersion(version);
    return version;
  }
The configuration key for HFile version to use for new files
hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFile.java