set hive.test.authz.sstd.hs2.mode=true; set hive.security.authorization.manager=org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd.SQLStdHiveAuthorizerFactoryForTest; set hive.security.authenticator.manager=org.apache.hadoop.hive.ql.security.SessionStateConfigUserAuthenticator; set hive.security.authorization.enabled=true; dfs ${system:test.dfs.mkdir} ${system:test.tmp.dir}/authz_drop_part_1; -- check drop partition without delete privilege create table tpart(i int, j int) partitioned by (k string); alter table tpart add partition (k = 'abc') location 'file:${system:test.tmp.dir}/authz_drop_part_1' ; set user.name=user1; alter table tpart drop partition (k = 'abc');