The realm isn't actually even used. This is just a remnant of copying it from Hadoop.  Its being passed in as the serverName. I think as along as the client and server match it doesn't matter. I'll update.