@Override
      public AtlasImportResult call() throws Exception {
        InputStream is = null;
        try {
          SecurityUtils.reloginExpiringKeytabUser();
          is = fs.open(exportFilePath);
          return clientV2.importData(request, is);
        } finally {
          if (is != null) {
            is.close();
          }
        }
      }
Implementation of RESTClient, encapsulates Atlas' REST APIs.
ql/src/java/org/apache/hadoop/hive/ql/exec/repl/atlas/AtlasRestClientImpl.java