public static HadoopShims.HdfsErasureCodingShim getErasureShim(Configuration config) throws IOException {
    HadoopShims hadoopShims = ShimLoader.getHadoopShims();
    FileSystem fileSystem = FileSystem.get(config);
    return hadoopShims.createHdfsErasureCodingShim(fileSystem, config);
  }
Get an instance of HdfsErasureCodingShim from a config.
ql/src/java/org/apache/hadoop/hive/ql/processors/ErasureProcessor.java