RANGER-580 Coprocessors must explictly declare the CoprocessorService else it won't get registered in all contexts
Project: http://git-wip-us.apache.org/repos/asf/incubator-ranger/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ranger/commit/9685b406 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ranger/tree/9685b406 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ranger/diff/9685b406 Branch: refs/heads/HDP-2.3.2-groupid Commit: 9685b4062e6877882525a464ba86f192c48a57c7 Parents: b5a2c7d Author: Alok Lal <[email protected]> Authored: Sat Jul 25 22:14:50 2015 -0700 Committer: Alok Lal <[email protected]> Committed: Mon Aug 17 12:16:56 2015 -0700 ---------------------------------------------------------------------- .../authorization/hbase/XaSecureAuthorizationCoprocessor.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/9685b406/hbase-agent/src/main/java/com/xasecure/authorization/hbase/XaSecureAuthorizationCoprocessor.java ---------------------------------------------------------------------- diff --git a/hbase-agent/src/main/java/com/xasecure/authorization/hbase/XaSecureAuthorizationCoprocessor.java b/hbase-agent/src/main/java/com/xasecure/authorization/hbase/XaSecureAuthorizationCoprocessor.java index 2a4f440..574a07c 100644 --- a/hbase-agent/src/main/java/com/xasecure/authorization/hbase/XaSecureAuthorizationCoprocessor.java +++ b/hbase-agent/src/main/java/com/xasecure/authorization/hbase/XaSecureAuthorizationCoprocessor.java @@ -18,6 +18,8 @@ */ package com.xasecure.authorization.hbase; +import org.apache.hadoop.hbase.coprocessor.CoprocessorService; +import org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos; import org.apache.ranger.authorization.hbase.RangerAuthorizationCoprocessor; /** @@ -28,6 +30,6 @@ import org.apache.ranger.authorization.hbase.RangerAuthorizationCoprocessor; * This class is final because if one needs to customize coprocessor it is expected that RangerAuthorizationCoprocessor would be modified/extended as that is * the "real" coprocessor! This class, hence, should NEVER be more than an EMPTY shell! */ -public final class XaSecureAuthorizationCoprocessor extends RangerAuthorizationCoprocessor { +public final class XaSecureAuthorizationCoprocessor extends RangerAuthorizationCoprocessor implements AccessControlProtos.AccessControlService.Interface, CoprocessorService { }
