Hi guys I am not getting the expected result from my authorization settings
I am evaluating Hive0.10.0+121 mysql> select * from hive.ROLES; +---------+-------------+------------+-----------+ | ROLE_ID | CREATE_TIME | OWNER_NAME | ROLE_NAME | +---------+-------------+------------+-----------+ | 6 | 1376704610 | NULL | sas_role | +---------+-------------+------------+-----------+ My settings are as follows. <!-- added by sanjay --> <property> <name>hive.server2.authentication</name> <value>LDAP</value> </property> <property> <name>hive.server2.authentication.ldap.url</name> <value>ldap://corp.nextag.com</value> </property> <property> <name>hive.security.authorization.enabled</name> <value>true</value> <description>enable or disable the hive client authorization</description> </property> <property> <name>hive.security.authorization.createtable.owner.grants</name> <value>ALL</value> <description>the privileges automatically granted to the owner whenever a table gets created. An example like "select,drop" will grant select and drop privilege to the owner of the table</description> </property> <property> <name>hive.security.authorization.createtable.role.grants</name> <value>sas_role:select</value> <description>The privileges automatically granted to some roles whenever a table gets created. An example like "roleX,roleY:select;roleZ:create" will grant select privilege to roleX and roleY, and grant create privilege to roleZ whenever a new table created.</description> </property> <property> <name>hive.security.authorization.createtable.group.grants</name> <value>hiveuser1:select</value> <description>The privileges automatically granted to some groups whenever a table gets created. An example like "groupX,groupY:select;groupZ:create" will grant select privilege to groupX and groupY, and grant create privilege to groupZ whenever a new table created.</description> </property> <property> <name>hive.security.authorization.createtable.user.grants</name> <value>hiveuser1:select</value> <description>The privileges automatically granted to some users whenever a table gets created. An example like "userX,userY:select;userZ:create" will grant select privilege to userX and userY, and grant create privilege to userZ whenever a new table created.</description> </property> USECASE STEPS ============ 1. Connect as sasubramanian and create table beeline> !connect jdbc:hive2://dev-thdp5:10000 sanjay.subraman...@wizecommerce.com ********* org.apache.hive.jdbc.HiveDriver Connecting to jdbc:hive2://dev-thdp5:10000 Connected to: Hive (version 0.10.0) Driver: Hive (version 0.10.0-cdh4.3.0) Transaction isolation: TRANSACTION_REPEATABLE_READ 0: jdbc:hive2://dev-thdp5:10000> CREATE EXTERNAL TABLE IF NOT EXISTS keyword_impressions_log (date_ STRING,server STRING,impression_id STRING,search_session_id STRING,channel_id INT,visit_id BIGINT,visitor_id BIGINT,app_style STRING,publisher_id INT,ip STRING,keyword_id BIGINT,keyword STRING,node_constraint BIGINT,mfr_constraint BIGINT,seller_constraint BIGINT,other_constraint STRING,continued INT,offset INT,results INT,sort_ INT,ad_nodes STRING,view_ INT,spelling STRING,referrer STRING,internal_ip INT,cat_feat_mode STRING,rules STRING,rb_filter INT,shuffled INT,related_item_results INT,pixeled INT,sr_attr_imps STRING,unranked_ptitle_ids STRING,perpage INT)PARTITIONED BY (header_date_partition STRING) STORED AS INPUTFORMAT "com.hadoop.mapred.DeprecatedLzoTextInputFormat" OUTPUTFORMAT "org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat"; No rows affected (0.251 seconds) 2. Logout of Hive and connect as hiveuser1 beeline> !connect jdbc:hive2://dev-thdp5:10000 hiveus...@corp.nextag.com W!ze2955 org.apache.hive.jdbc.HiveDriver Connected to: Hive (version 0.10.0) Driver: Hive (version 0.10.0-cdh4.3.0) Transaction isolation: TRANSACTION_REPEATABLE_READ 0: jdbc:hive2://dev-thdp5:10000> drop table keyword_impressions_log; No rows affected (0.397 seconds) TABLE GETS DROPPED BY hiveuser1 ????? Why ? <property> <name>hive.security.authorization.createtable.group.grants</name> <value>hiveuser1:select</value> <description>The privileges automatically granted to some groups whenever a table gets created. An example like "groupX,groupY:select;groupZ:create" will grant select privilege to groupX and groupY, and grant create privilege to groupZ whenever a new table created.</description> </property> Thanks sanjay CONFIDENTIALITY NOTICE ====================== This email message and any attachments are for the exclusive use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message along with any attachments, from your computer system. If you are the intended recipient, please be advised that the content of this message is subject to access, review and disclosure by the sender's Email System Administrator.