public static void main(String[] args) {
    int status = 0;
    try {
      execute(args);
    } catch (Exception e) {
      status = -1;
      LOGGER.error("Exception occured", e);
    } finally {
      System.exit(status);
    }
  }
This class provides Hive admins a tool. The following can be done with it:
- list the file system root
- execute JDOQL against the metastore using DataNucleus
- perform HA name node upgrade
- summarize the data in HMS
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/tools/metatool/HiveMetaTool.java