@VisibleForTesting
  boolean validateLocations(Connection conn, URI[] defaultServers) throws HiveMetaException {
    System.out.println("Validating DFS locations");
    boolean rtn = true;
    rtn &= checkMetaStoreDBLocation(conn, defaultServers);
    rtn &= checkMetaStoreTableLocation(conn, defaultServers);
    rtn &= checkMetaStorePartitionLocation(conn, defaultServers);
    rtn &= checkMetaStoreSkewedColumnsLocation(conn, defaultServers);
    System.out.println(rtn ? "[SUCCESS]\n" : "[FAIL]\n");
    return rtn;
  }
Print Hive version and schema version.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/tools/schematool/SchemaToolTaskValidate.java