Class HdfsActionUtils
java.lang.Object
org.apache.hadoop.hbase.chaos.actions.HdfsActionUtils
Configuration common across the HDFS Actions.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Specify a user as whom HDFS actions should be run. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) static org.apache.hadoop.hdfs.DistributedFileSystem
createDfs
(org.apache.hadoop.conf.Configuration conf) Create an instance ofDistributedFileSystem
that honors "org.apache.hadoop.hbase.chaos.actions.hdfs_user".private static org.apache.hadoop.hdfs.DistributedFileSystem
createUnproxiedDfs
(org.apache.hadoop.conf.Configuration conf)
-
Field Details
-
HDFS_USER_CONF_KEY
Specify a user as whom HDFS actions should be run. The chaos process must have permissions sufficient to assume the role of the specified user.
-
-
Constructor Details
-
HdfsActionUtils
private HdfsActionUtils()
-
-
Method Details
-
createUnproxiedDfs
private static org.apache.hadoop.hdfs.DistributedFileSystem createUnproxiedDfs(org.apache.hadoop.conf.Configuration conf) throws IOException - Throws:
IOException
-
createDfs
static org.apache.hadoop.hdfs.DistributedFileSystem createDfs(org.apache.hadoop.conf.Configuration conf) throws IOException Create an instance ofDistributedFileSystem
that honors "org.apache.hadoop.hbase.chaos.actions.hdfs_user".- Throws:
IOException
-