Support Questions

Find answers, ask questions, and share your expertise

how to grant the privilege to database using The SQL standards based authorization in hive

New Contributor

My requirement is database x has only access to user1 and database y only have the access to user2 using hive2 sql based Authorization model.

  1. As per SQL standards authorization in hive documentation select,delete,update,insert privileges unable to grant database then how to grant the privileges at database level ?
4 REPLIES 4

@Vijay Kiran

First thing is to enable 'SQLStdAuth' for Hive authorization. Refer to Apache link for more details.

New Contributor

by following the Apache link by changing the ownership of the database to role, we can grant the privileges. I followed these steps

create role a;

ALTER DATABASE x SET OWNER ROLE a;

can any help to proceed further steps towards the granting privileges to database x;

Thanks a lot.

New Contributor

@Sindhu it was not secured

New Contributor

by following the Apache link by changing the ownership of the database to role, we can grant the privileges. I followed these steps

create role a;

ALTER DATABASE x SET OWNER ROLE a;

can any help to proceed further steps towards the granting privileges to database x;

Thanks a lot.