private void addJobToken(String appIdString, String user,
      Token<JobTokenIdentifier> jobToken) {
    // This is in place to be compatible with the MR ShuffleHandler. Requests from ShuffleInputs
    // arrive with a job_ prefix.
    String jobIdString = appIdString.replace("application", "job");
    userRsrc.putIfAbsent(jobIdString, user);
    secretManager.addTokenForJob(jobIdString, jobToken);
    LOG.info("Added token for " + jobIdString);
  }
Unregister a specific dag

This method and registerDag must be synchronized externally to prevent races in shuffle token registration/unregistration

@param dir
@param applicationIdString
@param dagIdentifier
llap-server/src/java/org/apache/hadoop/hive/llap/shufflehandler/ShuffleHandler.java