use of org.apache.hive.service.cli.thrift.ThriftCLIServiceClient in project hive by apache.
the class TestSessionHooks method setUp.
@Override
@Before
public void setUp() throws Exception {
super.setUp();
SessionHookTest.runCount.set(0);
System.setProperty(ConfVars.HIVE_SERVER2_SESSION_HOOK.varname, TestSessionHooks.SessionHookTest.class.getName());
service = new EmbeddedThriftBinaryCLIService();
HiveConf hiveConf = new HiveConf();
hiveConf.setVar(HiveConf.ConfVars.HIVE_AUTHORIZATION_MANAGER, "org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd.SQLStdHiveAuthorizerFactory");
service.init(hiveConf);
client = new ThriftCLIServiceClient(service);
}
Aggregations