Whne using MiniKDC and the minicluster in a unit test, there is a conflict causeed by HBaseTestingUtility:
This creates users like securedUser/localhost@EXAMPLE.COM.hfs.0, and this does not work.
My fix is to return the current user when Kerberos is set. I don't think that there is another option (any other opinion?). However this user is not in a group so we have logs like 'WARN [IPC Server handler 9 on 61366] security.UserGroupInformation (UserGroupInformation.java:getGroupNames(1521)) - No groups available for user securedUser' I'm not sure of its impact. Andrew Kyle Purtell, what do you think?