@Override public Object getProxy(Class protocol, InetSocketAddress addr, Configuration conf) { UserGroupInformation currentUser = null; try { currentUser = UserGroupInformation.getCurrentUser(); } catch (IOException ioe) { Assert.fail("Unable to get current user\n" + StringUtils.stringifyException(ioe)); } lastCurrentUser = currentUser; return super.getProxy(protocol, addr, conf); } }