How Do I Access Hive in a Cluster with Kerberos Authentication Enabled?
- Log in to the master node in the cluster as user root.
- Run the following command to configure environment variables:
- If Kerberos authentication is enabled for the current cluster, run the following command to authenticate the user:
Example: kinit hiveuser
The current user must have the permission to create Hive tables..
- Run the client command of the Hive component.
- Run the Hive command in Beeline, for example:
create table test_obs(a int, b string) row format delimited fields terminated by "," stored as textfile location "obs://test_obs";
- Press Ctrl+C to exit the Hive Beeline.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.