Package com.mapr.fs.clicommands
Class MapRCliCommands
java.lang.Object
org.apache.hadoop.conf.Configured
com.mapr.fs.clicommands.MapRCliCommands
- All Implemented Interfaces:
com.mapr.baseutils.utils.AceHelper.FSPermission,org.apache.hadoop.conf.Configurable,org.apache.hadoop.util.Tool
public class MapRCliCommands
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool, com.mapr.baseutils.utils.AceHelper.FSPermission
Provide command line access to a FileSystem.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SimpleDateFormatstatic intstatic intstatic intstatic intprotected static MapRFileSystemstatic intprotected static final SimpleDateFormatstatic final Stringstatic intstatic intstatic int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static booleancompareIPAddress(com.mapr.fs.proto.Common.IPAddress a, com.mapr.fs.proto.Common.IPAddress b) getCliParam(String key) intgetSecurityPolicyTag(String path, boolean recursive) protected voidinit()static voidmain() has some simple utility methodsintremoveAllSecurityPolicyTags(String path, boolean recursive) intremoveSecurityPolicyTag(String securityPolicyTags, String path, boolean recursive) intrunintsetSecurityPolicyTag(String securityPolicyTags, String path, boolean isSet, boolean recursive) intMethods inherited from class org.apache.hadoop.conf.Configured
getConf, setConfMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
-
Field Details
-
RecursiveBit
public static int RecursiveBit -
DirOnlyBit
public static int DirOnlyBit -
DiskBlockOnlyBit
public static int DiskBlockOnlyBit -
DereferenceSymlinkBit
public static int DereferenceSymlinkBit -
SingleVolumeBit
public static int SingleVolumeBit -
FidBit
public static int FidBit -
NoFidMap
public static int NoFidMap -
LiteLsBit
public static int LiteLsBit -
fs
-
dateForm
-
modifFmt
-
multiAceArg
- See Also:
-
fsAccessTypeMap
-
-
Constructor Details
-
MapRCliCommands
public MapRCliCommands(org.apache.hadoop.conf.Configuration conf) -
MapRCliCommands
public MapRCliCommands()
-
-
Method Details
-
init
- Throws:
IOException
-
compareIPAddress
public static boolean compareIPAddress(com.mapr.fs.proto.Common.IPAddress a, com.mapr.fs.proto.Common.IPAddress b) -
tierOp
public int tierOp(com.mapr.fs.cldb.proto.CLDBProto.FileTierOp op, String path, boolean verbose) throws IOException - Throws:
IOException
-
setSecurityPolicyTag
public int setSecurityPolicyTag(String securityPolicyTags, String path, boolean isSet, boolean recursive) throws IOException - Throws:
IOException
-
getSecurityPolicyTag
- Throws:
IOException
-
removeSecurityPolicyTag
public int removeSecurityPolicyTag(String securityPolicyTags, String path, boolean recursive) throws IOException - Throws:
IOException
-
removeAllSecurityPolicyTags
- Throws:
IOException
-
run
run- Specified by:
runin interfaceorg.apache.hadoop.util.Tool- Throws:
Exception
-
close
- Throws:
IOException
-
getCliParam
- Specified by:
getCliParamin interfacecom.mapr.baseutils.utils.AceHelper.FSPermission- Throws:
IOException
-
main
main() has some simple utility methods- Throws:
Exception
-