Get a Kerberos Ticket

You must perform the recommended steps if you use Kerberos; otherwise, you can skip these steps.

  1. Become the Hive service user.
    For example, on Linux:
    $ kinit -kt /etc/security/keytabs/hive.service.keytab hive/`hostname -f`
  2. Set in a Kerberized environment if, after running kinit, you see the following error: org.ietf.jgss.GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt
  3. Perform the procedure for compacting Hive tables that follows.