You need to run the following commands on the Hue machine:
yum install pig
yum install hbase
However as for hue shutting down itself, this wouldn’t cause that. You should check the logs in /var/log/hue to see what is happening when it goes down.
It’s possible your hue.ini is misconfigured.