I am trying to connect to Hive using beeline on an EMR cluster (Kerberos enabled) and am wondering why I'd run a kinit (using my user account) and then the following:
beeline -u "jdbc:hive2://localhost:10000/default;principal=hive/_HOST@REALM"
The part that confuses me is the principal above. Why do we use "principal=hive/_HOST@REALM" (which from what I've read is the Hive service principal) when I've authenticated with my user account using the kinit in the previous command?
Will I be running queries against the Hive service principal or my user account? Do all users use the Hive service principal when using beeline? Is there any reason behind this?
Link for further context: Connecting to Hive via Beeline using Kerberos keytab