public LlapManagementProtocolClientImpl withUgi(UserGroupInformation ugi) {
    this.ugi = ugi;
    this.ugiChanged = true;
    return this;
  }
Sets an UserGroupInformation instance to be used with this client (a new ugi might be for a new token).
The field ugiChanged is for telling that e.g. new proxies have to be created.
llap-common/src/java/org/apache/hadoop/hive/llap/impl/LlapManagementProtocolClientImpl.java