@Override
  public void run() {
    LOG.info("Using warmup " + warmup + " spin " + spinCount + " nparams " + Arrays.toString(nParameters) + " threads "
        + nThreads);
    HMSConfig.getInstance().init(host, port, confDir);

    preRunMsck(runMode == RunModes.MSCK);
    switch (runMode) {
      case ACID:
        runAcidBenchmarks();
        break;
      case MSCK:
      case NONACID:
        runNonAcidBenchmarks();
        break;
      case ALL:
      default:
        runNonAcidBenchmarks();
        runAcidBenchmarks();
        break;
    }
  }
Command-line access to Hive Metastore.
standalone-metastore/metastore-tools/metastore-benchmarks/src/main/java/org/apache/hadoop/hive/metastore/tools/BenchmarkTool.java