public UserGroupInformation getSessionUgi() {
    return this.sessionUgi;
  }
HiveSessionImplwithUGI.
HiveSession with connecting user's UGI and delegation token if required.
Note: this object may be shared between threads in HS2.
service/src/java/org/apache/hive/service/cli/session/HiveSessionImplwithUGI.java