if (CallerContext.getCurrent() == null) { CallerContext ctx = new CallerContext.Builder("CLI").build(); CallerContext.setCurrent(ctx);
CallerContext callerContext = CallerContext.getCurrent(); if (callerContext != null && callerContext.isContextValid()) { RPCCallerContextProto.Builder contextBuilder = RPCCallerContextProto
private void logAuditEvent(boolean succeeded, UserGroupInformation ugi, InetAddress addr, String cmd, String src, String dst, FileStatus status) { final String ugiStr = ugi.toString(); for (AuditLogger logger : auditLoggers) { if (logger instanceof HdfsAuditLogger) { HdfsAuditLogger hdfsLogger = (HdfsAuditLogger) logger; hdfsLogger.logAuditEvent(succeeded, ugiStr, addr, cmd, src, dst, status, CallerContext.getCurrent(), ugi, dtSecretManager); } else { logger.logAuditEvent(succeeded, ugiStr, addr, cmd, src, dst, status); } } }
CallerContext callerContext = CallerContext.getCurrent();
if (CallerContext.getCurrent() == null) { CallerContext ctx = new CallerContext.Builder("CLI").build(); CallerContext.setCurrent(ctx);
.getApplicationSubmissionContext(); ApplicationId applicationId = submissionContext.getApplicationId(); CallerContext callerContext = CallerContext.getCurrent();
this.callerContext = CallerContext.getCurrent();
CallerContext callerContext = CallerContext.getCurrent(); if (callerContext != null && callerContext.isContextValid()) { RPCCallerContextProto.Builder contextBuilder = RPCCallerContextProto