@Override public UserGroupInformation getUGI(NamespacedEntityId entityId) throws IOException { return getUGI(entityId, ImpersonatedOpType.OTHER); }
@Override public <T> T doAs(NamespacedEntityId entityId, Callable<T> callable, ImpersonatedOpType impersonatedOpType) throws Exception { UserGroupInformation ugi = getUGI(entityId, impersonatedOpType); if (!UserGroupInformation.getCurrentUser().equals(ugi)) { LOG.debug("Performing doAs with UGI {} for entity {} and impersonation operation type {}", ugi, entityId, impersonatedOpType); } return ImpersonationUtils.doAs(ugi, callable); }