@Override
  public long getFileId(FileSystem fs, String path) throws IOException {
    HdfsFileStatus fileInfo = ensureDfs(fs).getClient().getFileInfo(path);
    if (fileInfo == null) {
      throw new FileNotFoundException(path + " does not exist.");
    }
    return fileInfo.getFileId();
  }
Compares two encryption key strengths.

@param zone1 First  EncryptionZone to compare
@param zone2 Second EncryptionZone to compare
@return 1 if zone1 is stronger; 0 if zones are equal; -1 if zone1 is weaker.
@throws IOException If an error occurred attempting to get key metadata
shims/0.23/src/main/java/org/apache/hadoop/hive/shims/Hadoop23Shims.java