A word of warning for users of HiveServer2 - version 0.11 at least. This puppy has the ability crash and/or hang your server with a memory leak.
Apparently its not new since googling shows this discussed before and i see reference to a workaround here: https://cwiki.apache.org/confluence/display/Hive/Setting+up+HiveServer2 Anyhoo. Consider this a Public Service Announcement. Take heed. Regards, Stephen.