private static synchronized boolean isHdfsErasureCodingSupported() {
    if (hdfsErasureCodingSupport == null) {
      Method m = null;

      try {
        m = HdfsAdmin.class.getMethod("getErasureCodingPolicies");
      } catch (NoSuchMethodException e) {
        // This version of Hadoop does not support HdfsAdmin.getErasureCodingPolicies().
        // Hadoop 3.0.0 introduces this new method.
      }
      hdfsErasureCodingSupport = (m != null);
    }

    return hdfsErasureCodingSupport;
  }
@return true if the runtime version of hdfs supports erasure coding
shims/0.23/src/main/java/org/apache/hadoop/hive/shims/Hadoop23Shims.java