Search in sources :

Example 1 with AccessChecker

use of org.apache.hadoop.hbase.security.access.AccessChecker in project hbase by apache.

the class HBaseRpcServicesBase method internalStart.

protected final void internalStart(ZKWatcher zkWatcher) {
    if (AccessChecker.isAuthorizationSupported(getConfiguration())) {
        accessChecker = new AccessChecker(getConfiguration());
    } else {
        accessChecker = new NoopAccessChecker(getConfiguration());
    }
    zkPermissionWatcher = new ZKPermissionWatcher(zkWatcher, accessChecker.getAuthManager(), getConfiguration());
    try {
        zkPermissionWatcher.start();
    } catch (KeeperException e) {
        LOG.error("ZooKeeper permission watcher initialization failed", e);
    }
    rpcServer.start();
}
Also used : NoopAccessChecker(org.apache.hadoop.hbase.security.access.NoopAccessChecker) KeeperException(org.apache.zookeeper.KeeperException) NoopAccessChecker(org.apache.hadoop.hbase.security.access.NoopAccessChecker) AccessChecker(org.apache.hadoop.hbase.security.access.AccessChecker) ZKPermissionWatcher(org.apache.hadoop.hbase.security.access.ZKPermissionWatcher)

Aggregations

AccessChecker (org.apache.hadoop.hbase.security.access.AccessChecker)1 NoopAccessChecker (org.apache.hadoop.hbase.security.access.NoopAccessChecker)1 ZKPermissionWatcher (org.apache.hadoop.hbase.security.access.ZKPermissionWatcher)1 KeeperException (org.apache.zookeeper.KeeperException)1