public static void setPolicy(FileSystem fs, Path path, String policy) throws IOException {
    getDfs(fs).setErasureCodingPolicy(path, policy);
  }
Sets the EC policy on the path
hbase-server/src/main/java/org/apache/hadoop/hbase/fs/ErasureCodingUtils.java