public static MiniClusterType valueForString(String type) {
      // Replace this with valueOf.
      if (type.equals("miniMR")) {
        return MR;
      } else if (type.equals("tez")) {
        return TEZ;
      } else if (type.equals("tez_local")) {
        return TEZ_LOCAL;
      } else if (type.equals("llap")) {
        return LLAP;
      } else if (type.equals("llap_local")) {
        return LLAP_LOCAL;
      } else if (type.equals("druidLocal")) {
        return DRUID_LOCAL;
      } else if (type.equals("druid")) {
        return DRUID;
      } else if (type.equals("druid-kafka")) {
        return DRUID_KAFKA;
      } else if (type.equals("kafka")) {
        return KAFKA;
      } else if (type.equals("kudu")) {
        return KUDU;
      } else {
        throw new RuntimeException(String.format("cannot recognize MiniClusterType from '%s'", type));
      }
    }
The default Erasure Coding Policy to use in Erasure Coding tests.
itests/util/src/main/java/org/apache/hadoop/hive/ql/QTestMiniClusters.java