hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pxi...@apache.org
Subject hive git commit: HIVE-14338: Delete/Alter table calls failing with HiveAccessControlException (Pengcheng Xiong, reviewed by Ashutosh Chauhan, Thejas M Nair)
Date Thu, 28 Jul 2016 00:00:30 GMT
Repository: hive
Updated Branches:
  refs/heads/branch-2.1 c35a10e66 -> 0df731d76


HIVE-14338: Delete/Alter table calls failing with HiveAccessControlException (Pengcheng Xiong,
reviewed by Ashutosh Chauhan, Thejas M Nair)


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/0df731d7
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/0df731d7
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/0df731d7

Branch: refs/heads/branch-2.1
Commit: 0df731d7645041752794bb784e17e3d788e1f03b
Parents: c35a10e
Author: Pengcheng Xiong <pxiong@apache.org>
Authored: Wed Jul 27 16:58:21 2016 -0700
Committer: Pengcheng Xiong <pxiong@apache.org>
Committed: Wed Jul 27 17:00:18 2016 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/hive/hcatalog/cli/HCatCli.java     | 2 --
 .../test/java/org/apache/hive/hcatalog/cli/TestPermsGrp.java    | 5 ++---
 2 files changed, 2 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/0df731d7/hcatalog/core/src/main/java/org/apache/hive/hcatalog/cli/HCatCli.java
----------------------------------------------------------------------
diff --git a/hcatalog/core/src/main/java/org/apache/hive/hcatalog/cli/HCatCli.java b/hcatalog/core/src/main/java/org/apache/hive/hcatalog/cli/HCatCli.java
index f6560d9..187ca4e 100644
--- a/hcatalog/core/src/main/java/org/apache/hive/hcatalog/cli/HCatCli.java
+++ b/hcatalog/core/src/main/java/org/apache/hive/hcatalog/cli/HCatCli.java
@@ -80,8 +80,6 @@ public class HCatCli {
     HiveConf conf = ss.getConf();
 
     HiveConf.setVar(conf, ConfVars.SEMANTIC_ANALYZER_HOOK, HCatSemanticAnalyzer.class.getName());
-    conf.setVar(HiveConf.ConfVars.HIVE_AUTHORIZATION_MANAGER,
-        "org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd.SQLStdHiveAuthorizerFactory");
     String engine = HiveConf.getVar(conf, ConfVars.HIVE_EXECUTION_ENGINE);
     final String MR_ENGINE = "mr";
     if(!MR_ENGINE.equalsIgnoreCase(engine)) {

http://git-wip-us.apache.org/repos/asf/hive/blob/0df731d7/hcatalog/core/src/test/java/org/apache/hive/hcatalog/cli/TestPermsGrp.java
----------------------------------------------------------------------
diff --git a/hcatalog/core/src/test/java/org/apache/hive/hcatalog/cli/TestPermsGrp.java b/hcatalog/core/src/test/java/org/apache/hive/hcatalog/cli/TestPermsGrp.java
index d029906..8aa510f 100644
--- a/hcatalog/core/src/test/java/org/apache/hive/hcatalog/cli/TestPermsGrp.java
+++ b/hcatalog/core/src/test/java/org/apache/hive/hcatalog/cli/TestPermsGrp.java
@@ -98,9 +98,6 @@ public class TestPermsGrp extends TestCase {
     hcatConf.set(HiveConf.ConfVars.POSTEXECHOOKS.varname, "");
     hcatConf.setTimeVar(HiveConf.ConfVars.METASTORE_CLIENT_SOCKET_TIMEOUT, 60, TimeUnit.SECONDS);
     hcatConf.setBoolVar(HiveConf.ConfVars.HIVE_SUPPORT_CONCURRENCY, false);
-    hcatConf
-    .setVar(HiveConf.ConfVars.HIVE_AUTHORIZATION_MANAGER,
-        "org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd.SQLStdHiveAuthorizerFactory");
     clientWH = new Warehouse(hcatConf);
     msc = new HiveMetaStoreClient(hcatConf);
     System.setProperty(HiveConf.ConfVars.PREEXECHOOKS.varname, " ");
@@ -198,6 +195,8 @@ public class TestPermsGrp extends TestCase {
   private void callHCatCli(String[] args) {
     List<String> argsList = new ArrayList<String>();
     argsList.add("-Dhive.support.concurrency=false");
+    argsList
+        .add("-Dhive.security.authorization.manager=org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd.SQLStdHiveAuthorizerFactory");
     argsList.addAll(Arrays.asList(args));
     HCatCli.main(argsList.toArray(new String[]{}));
   }


Mime
View raw message