private void addCatalog(Connection conn, Statement stmt, int catNum) throws SQLException {
    String update = String.format(schemaTool.quote(ADD_CATALOG_STMT), catNum, catName, description, location);
    LOG.debug("Going to run " + update);
    stmt.execute(update);
    conn.commit();
  }
Print Hive version and schema version.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/tools/schematool/SchemaToolTaskCreateCatalog.java