public static void setPolicy(FileSystem fs, Path rootDir, TableName tableName, String policy)
    throws IOException {
    Path path = CommonFSUtils.getTableDir(rootDir, tableName);
    setPolicy(fs, path, policy);
  }
Sets the EC policy on the table directory for the specified table
hbase-server/src/main/java/org/apache/hadoop/hbase/fs/ErasureCodingUtils.java