@Override
    public boolean arePathsOnSameEncryptionZone(Path path1, Path path2, HdfsEncryptionShim encryptionShim2) throws IOException {
      // Not supported.
      return true;
    }
This is a dummy class used when the hadoop version does not support hdfs encryption.
shims/common/src/main/java/org/apache/hadoop/hive/shims/HadoopShims.java