public class IntegrationTestZKAndFSPermissions extends org.apache.hadoop.hbase.util.AbstractHBaseTool
Example usage: hbase org.apache.hadoop.hbase.test.IntegrationTestZnodeACLs -h
| Modifier and Type | Field and Description |
|---|---|
static String |
FORCE_CHECK_ARG |
static String |
FS_PERMS |
private String |
fsPerms |
private boolean |
isForce |
private static org.slf4j.Logger |
LOG |
private String |
masterPrincipal |
static String |
PRINCIPAL_ARG |
static String |
SKIP_CHECK_FS |
static String |
SKIP_CHECK_ZK |
private boolean |
skipFSCheck |
private boolean |
skipZKCheck |
private String |
superUser |
static String |
SUPERUSER_ARG |
| Constructor and Description |
|---|
IntegrationTestZKAndFSPermissions() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addOptions() |
private void |
assertZnodePerms(org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper zk,
String znode,
boolean expectedWorldReadable) |
private void |
checkZnodePermsRecursive(org.apache.hadoop.hbase.zookeeper.ZKWatcher watcher,
org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper zk,
String znode) |
protected int |
doWork() |
private String |
getShortUserName(String principal) |
static void |
main(String[] args) |
protected void |
processOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd) |
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
private void |
testFSPerms() |
private void |
testZNodeACLs() |
addOption, addOptNoArg, addOptNoArg, addOptWithArg, addOptWithArg, addRequiredOption, addRequiredOptWithArg, addRequiredOptWithArg, doStaticMain, getConf, getOptionAsDouble, getOptionAsInt, getOptionAsInt, getOptionAsLong, getOptionAsLong, newParser, parseArgs, parseInt, parseLong, printUsage, printUsage, processOldArgs, runprivate static final org.slf4j.Logger LOG
private String masterPrincipal
private boolean isForce
private boolean skipFSCheck
private boolean skipZKCheck
public static final String FORCE_CHECK_ARG
public static final String PRINCIPAL_ARG
public static final String SUPERUSER_ARG
public static final String FS_PERMS
public static final String SKIP_CHECK_FS
public static final String SKIP_CHECK_ZK
public IntegrationTestZKAndFSPermissions()
public void setConf(org.apache.hadoop.conf.Configuration conf)
setConf in interface org.apache.hadoop.conf.ConfigurablesetConf in class org.apache.hadoop.hbase.util.AbstractHBaseToolprotected void addOptions()
addOptions in class org.apache.hadoop.hbase.util.AbstractHBaseToolprotected void processOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd)
processOptions in class org.apache.hadoop.hbase.util.AbstractHBaseToolprivate String getShortUserName(String principal)
protected int doWork() throws Exception
doWork in class org.apache.hadoop.hbase.util.AbstractHBaseToolExceptionprivate void testZNodeACLs() throws IOException, org.apache.zookeeper.KeeperException, InterruptedException
IOExceptionorg.apache.zookeeper.KeeperExceptionInterruptedExceptionprivate void checkZnodePermsRecursive(org.apache.hadoop.hbase.zookeeper.ZKWatcher watcher, org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper zk, String znode) throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperExceptionInterruptedExceptionprivate void assertZnodePerms(org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper zk, String znode, boolean expectedWorldReadable) throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperExceptionInterruptedExceptionprivate void testFSPerms() throws IOException
IOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.