You must perform the recommended steps if you use Kerberos; otherwise, you can skip
these steps.
-
Become the Hive service user.
For example, on Linux:
$ kinit -kt /etc/security/keytabs/hive.service.keytab hive/`hostname -f`
-
Set
-Djavax.security.auth.useSubjectCredsOnly=false
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
-
Perform the procedure for compacting Hive tables that follows.