forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Yang, Tong <yangtong2@huawei.com> Co-committed-by: Yang, Tong <yangtong2@huawei.com>
2.3 KiB
2.3 KiB
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.
Parent topic: Kerberos Usage