1. 程式人生 > >hive 建立linux使用者和對特定數倉賦權

hive 建立linux使用者和對特定數倉賦權

linux上增加使用者 useradd –d /home/hdfs/test -m test 切換到超級使用者 sudo su - hdfs 在hive 客戶端上建立角色 CREATE ROLE role_test; 對建立的角色賦權列如查詢許可權 grant SELECT,SHOW_DATABASE on database test_ods to role role_test; grant SELECT,SHOW_DATABASE on database test_dw to role role_test; grant SELECT,SHOW_DATABASE on database test_report to role role_test;

對linux 使用者賦權即角色許可權 grant role role_select to user test

注:和hadoop 一樣,本身不提供使用者組和使用者管理,他的使用者組和使用者即為linux的使用者和使用者組。 hive本身也只做許可權控制。hive的使用者和使用者組即為linux的使用者和使用者組。