public UserGroupInformation getUGI() throws IOException {
    checkLogin();
    return _loginUser;
  }
The class handles authentication when cluster is security enabled
app/com/linkedin/drelephant/security/HadoopSecurity.java