code: public static File getHadoopTokens(HadoopSecurityManager hadoopSecurityManager, Props props,
        Logger log) throws HadoopSecurityManagerException {
  
      File tokenFile = null;
      try {
        tokenFile = File.createTempFile("mr-azkaban", ".token");
      } catch (Exception e) {
        throw new HadoopSecurityManagerException("Failed to create the token file.", e);
      }
  
      hadoopSecurityManager.prefetchToken(tokenFile, props, log);
  
      return tokenFile;
    }
docs: Fetching token with the Azkaban user