HIVE-14463: hcatalog server extensions test cases getting stuck (Hari Subramaniyan, reviewed by Ashutosh Chauhan)
Project: http://git-wip-us.apache.org/repos/asf/hive/repo Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/59c4d060 Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/59c4d060 Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/59c4d060 Branch: refs/heads/branch-2.1 Commit: 59c4d060b99ba34f5aff8d7558454f8c50e7ba75 Parents: 0369085 Author: Hari Subramaniyan <harisan...@apache.org> Authored: Tue Aug 16 11:07:41 2016 -0700 Committer: Sergio Pena <sergio.p...@cloudera.com> Committed: Thu Nov 10 14:00:08 2016 -0600 ---------------------------------------------------------------------- .../org/apache/hive/hcatalog/listener/TestMsgBusConnection.java | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hive/blob/59c4d060/hcatalog/server-extensions/src/test/java/org/apache/hive/hcatalog/listener/TestMsgBusConnection.java ---------------------------------------------------------------------- diff --git a/hcatalog/server-extensions/src/test/java/org/apache/hive/hcatalog/listener/TestMsgBusConnection.java b/hcatalog/server-extensions/src/test/java/org/apache/hive/hcatalog/listener/TestMsgBusConnection.java index 3c4e50b..9f7c207 100644 --- a/hcatalog/server-extensions/src/test/java/org/apache/hive/hcatalog/listener/TestMsgBusConnection.java +++ b/hcatalog/server-extensions/src/test/java/org/apache/hive/hcatalog/listener/TestMsgBusConnection.java @@ -68,7 +68,10 @@ public class TestMsgBusConnection extends TestCase { NotificationListener.class.getName()); hiveConf.set(HiveConf.ConfVars.PREEXECHOOKS.varname, ""); hiveConf.set(HiveConf.ConfVars.POSTEXECHOOKS.varname, ""); + hiveConf.set(HiveConf.ConfVars.METASTOREURIS.varname, ""); hiveConf.set(HiveConf.ConfVars.HIVE_SUPPORT_CONCURRENCY.varname, "false"); + hiveConf.setVar(HiveConf.ConfVars.HIVE_AUTHORIZATION_MANAGER, + "org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd.SQLStdHiveAuthorizerFactory"); hiveConf.set(HCatConstants.HCAT_MSGBUS_TOPIC_PREFIX, "planetlab.hcat"); SessionState.start(new CliSessionState(hiveConf)); driver = new Driver(hiveConf);