private void setupWithHiveConf(HiveConf conf) throws Exception {
    if (null == miniCluster) {
      String testTmpDir = System.getProperty("test.tmp.dir");
      File tmpDir = new File(testTmpDir, "kudu");

      if (tmpDir.exists()) {
        FileUtils.deleteDirectory(tmpDir);
      }

      miniCluster = new MiniKuduCluster.MiniKuduClusterBuilder()
          .numMasterServers(3)
          .numTabletServers(3)
          .build();
    }

    updateConf(conf);
  }
Start and stop a Kudu MiniCluster for testing purposes.
itests/util/src/main/java/org/apache/hadoop/hive/kudu/KuduTestSetup.java