Simple way to run the beeline client on a Kerberised Hadoop cluster

The one-liner below can be used to easily run beeline as a specific user (note you need to kinit as that user first) and need to be running on a server that is running HiveServer2 otherwise you will need to modify the hostname part and FQDN accordingly.

export HDPUSER='hive'
beeline -u "jdbc:hive2://$(hostname -f):10000/default;principal=$HDPUSER/$(hostname -f)@MYDOMAIN.CO.UK"


Comments