use of org.apache.hadoop.hbase.HBaseClusterInterface in project hbase by apache.
the class SudoCommandAction method init.
@Override
public void init(ActionContext context) throws IOException {
super.init(context);
HBaseClusterInterface cluster = context.getHBaseCluster();
if (cluster instanceof DistributedHBaseCluster) {
Object manager = ((DistributedHBaseCluster) cluster).getClusterManager();
if (manager instanceof HBaseClusterManager) {
clusterManager = (HBaseClusterManager) manager;
}
}
}
Aggregations