public String getCurrentUserName() throws IOException {
    User user = getCurrent();
    return user == null ? null : user.getName();
  }
Returns the userName for the current logged-in user.
@throws IOException if the underlying user cannot be obtained
hbase-common/src/main/java/org/apache/hadoop/hbase/security/UserProvider.java