private void unsetPolicy(String[] params) throws Exception {
    String command = "unsetPolicy";
    try {
      // unsetPolicy -path <path>
      Options unsetPolicyOptions = new Options();

      String pathOptionName = "path";
      Option pathOption = OptionBuilder.hasArg()
          .isRequired()
          .withLongOpt(pathOptionName)
          .withDescription("Path to unset policy on")
          .create();
      unsetPolicyOptions.addOption(pathOption);

      CommandLine args = parseCommandArgs(unsetPolicyOptions, params);
      String path = args.getOptionValue(pathOptionName);

      erasureCodingShim.unsetErasureCodingPolicy(new Path(path));
      writeTestOutput("Unset EC policy");
    } catch (ParseException pe) {
      writeTestOutput("Error parsing options for " + command + " " + pe.getMessage());
    } catch (Exception e) {
      writeTestOutput("Caught exception running " + command + ": " + e.getMessage());
      throw new Exception("Cannot run " + command + ": " + e.getMessage());
    }
  }
Unsets an erasure coding policy on a directory at the specified path.
@param params Parameters passed to the command.
@throws Exception if command failed.
ql/src/java/org/apache/hadoop/hive/ql/processors/ErasureProcessor.java