blob: 80aa7a4323f77bb14761311bba4cce00964663b0 [file] [log] [blame]
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 user.name=user1;
-- current user has been set (comment line before the set cmd is resulting in parse error!!)
CREATE TABLE table_priv_gfail1(i int);
set user.name=user2;
-- try grant insert to user3 as user2
GRANT INSERT ON table_priv_gfail1 TO USER user3;