The exit patch is just a quick hack to catch the NPE in order to allow ^D to exit hive without a stacktrace.
This is no longer a problem on Hive trunk/recent releases. Was resolved (in a different manner) quite a while ago after a CLI refactor I think.
Yup, this is not a problem on the latest trunk.
Thanks, set to Fixed
This issue is fixed and released as part of 0.10.0 release. If you find an issue which seems to be related to this one, please create a new jira and link this one with new jira.