Enables Hive to run in a cluster.

This pull-request enables Hive to run as a part of a cluster.