private String encodedUri(FileStatus fileStatus, String encodedSubDir)
          throws IOException, SemanticException {
    ReplChangeManager replChangeManager = ReplChangeManager.getInstance();
    Path currentDataFilePath = fileStatus.getPath();
    String checkSum = ReplChangeManager.checksumFor(currentDataFilePath, dataFileSystem);
    String cmEncodedURIL = replChangeManager.encodeFileUri(currentDataFilePath.toString(), checkSum, encodedSubDir);
    if (hiveConf.getBoolVar(HiveConf.ConfVars.REPL_HA_DATAPATH_REPLACE_REMOTE_NAMESERVICE)) {
      return org.apache.hadoop.hive.ql.parse.repl.dump.Utils.replaceNameserviceInEncodedURI(cmEncodedURIL, hiveConf);
    }
    return cmEncodedURIL;
  }
This needs the root data directory to which the data needs to be exported to.
The data export here is a list of files either in table/partition that are written to the _files
in the exportRootDataDir provided.
ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/io/FileOperations.java