You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by ok...@apache.org on 2025/01/12 09:36:53 UTC

(hive) branch master updated: HIVE-28619: TestHivePrivilegeObjectOwnerNameAndType to run on Tez (#5600) (Indhumathi Muthumurugesh, reviewed by Raghav Aggarwal, Shohei Okumiya)

This is an automated email from the ASF dual-hosted git repository.

okumin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git


The following commit(s) were added to refs/heads/master by this push:
     new a057684db69 HIVE-28619: TestHivePrivilegeObjectOwnerNameAndType to run on Tez (#5600) (Indhumathi Muthumurugesh, reviewed by Raghav Aggarwal, Shohei Okumiya)
a057684db69 is described below

commit a057684db69a60906d386de30efa7ec23d4fb3e8
Author: Indhumathi <in...@gmail.com>
AuthorDate: Sun Jan 12 15:06:47 2025 +0530

    HIVE-28619: TestHivePrivilegeObjectOwnerNameAndType to run on Tez (#5600) (Indhumathi Muthumurugesh, reviewed by Raghav Aggarwal, Shohei Okumiya)
---
 .../plugin/TestHivePrivilegeObjectOwnerNameAndType.java             | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/ql/src/test/org/apache/hadoop/hive/ql/security/authorization/plugin/TestHivePrivilegeObjectOwnerNameAndType.java b/ql/src/test/org/apache/hadoop/hive/ql/security/authorization/plugin/TestHivePrivilegeObjectOwnerNameAndType.java
index 66b6138a19c..8dfd26edf2b 100644
--- a/ql/src/test/org/apache/hadoop/hive/ql/security/authorization/plugin/TestHivePrivilegeObjectOwnerNameAndType.java
+++ b/ql/src/test/org/apache/hadoop/hive/ql/security/authorization/plugin/TestHivePrivilegeObjectOwnerNameAndType.java
@@ -26,10 +26,8 @@ import org.apache.hadoop.hive.conf.HiveConf.ConfVars;
 import org.apache.hadoop.hive.metastore.utils.TestTxnDbUtil;
 import org.apache.hadoop.hive.ql.Driver;
 import org.apache.hadoop.hive.ql.lockmgr.DbTxnManager;
-import org.apache.hadoop.hive.ql.security.authorization.plugin.HivePrivilegeObject;
 import org.apache.hadoop.hive.ql.security.HiveAuthenticationProvider;
 import org.apache.hadoop.hive.ql.session.SessionState;
-import org.apache.hadoop.security.UserGroupInformation;
 import org.junit.AfterClass;
 import org.junit.Assert;
 import org.junit.BeforeClass;
@@ -68,20 +66,16 @@ public class TestHivePrivilegeObjectOwnerNameAndType {
 
   @BeforeClass
   public static void beforeTest() throws Exception {
-    UserGroupInformation.setLoginUser(UserGroupInformation.createRemoteUser("hive"));
     conf = new HiveConfForTest(TestHivePrivilegeObjectOwnerNameAndType.class);
 
     // Turn on mocked authorization
     conf.setVar(ConfVars.HIVE_AUTHORIZATION_MANAGER, MockedHiveAuthorizerFactory.class.getName());
-    //conf.setVar(ConfVars.HIVE_AUTHENTICATOR_MANAGER, SessionStateUserAuthenticator.class.getName());
     conf.setBoolVar(ConfVars.HIVE_AUTHORIZATION_ENABLED, true);
     conf.setBoolVar(ConfVars.HIVE_SERVER2_ENABLE_DOAS, false);
     conf.setBoolVar(ConfVars.HIVE_SUPPORT_CONCURRENCY, true);
     conf.setVar(ConfVars.HIVE_TXN_MANAGER, DbTxnManager.class.getName());
     conf.setVar(ConfVars.HIVE_MAPRED_MODE, "nonstrict");
     conf.setVar(ConfVars.DYNAMIC_PARTITIONING_MODE, "nonstrict");
-    // TODO: HIVE-28619: TestHivePrivilegeObjectOwnerNameAndType to run on Tez
-    conf.set("hive.execution.engine", "mr");
 
     TestTxnDbUtil.prepDb(conf);
     SessionState.start(conf);