diff --git a/service/src/java/org/apache/hive/service/cli/thrift/ThriftCLIService.java b/service/src/java/org/apache/hive/service/cli/thrift/ThriftCLIService.java index ccf576fe50d3..36b781e2dced 100644 --- a/service/src/java/org/apache/hive/service/cli/thrift/ThriftCLIService.java +++ b/service/src/java/org/apache/hive/service/cli/thrift/ThriftCLIService.java @@ -549,7 +549,7 @@ private SessionHandle getSessionHandle(TOpenSessionReq req, TOpenSessionResp res throws HiveSQLException, IOException { final String ipAddress = getIpAddress(); - LOG.info("Creating Hive session handle for user [{}] from IP {}", req.getUsername(), ipAddress); + LOG.info("Creating Hive session handle for user [{}] from IP {}", userName, ipAddress); TProtocolVersion protocol = getMinVersion(CLIService.SERVER_VERSION, req.getClient_protocol());