Package org.apache.hadoop.fs
Class FsShellPermissions
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.fs.shell.Command
org.apache.hadoop.fs.shell.FsCommand
org.apache.hadoop.fs.FsShellPermissions
- All Implemented Interfaces:
Configurable
- Direct Known Subclasses:
FsShellPermissions.Chmod,FsShellPermissions.Chown
This class is the home for file permissions related commands.
Moved to this separate class since FsShell is getting too large.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classUsed to change group of filesstatic classThe pattern is almost as flexible as mode allowed by chmod shell command.static classUsed to change owner and/or group of files -
Field Summary
Fields inherited from class org.apache.hadoop.fs.shell.Command
args, COMMAND_DESCRIPTION_FIELD, COMMAND_NAME_FIELD, COMMAND_USAGE_FIELD, err, exceptions, exitCode, name, numErrors, out, recursive -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidregisterCommands(CommandFactory factory) Register the permission related commands with the factoryMethods inherited from class org.apache.hadoop.fs.shell.FsCommand
getCommandName, processRawArguments, run, runAllMethods inherited from class org.apache.hadoop.fs.shell.Command
displayError, displayError, displayWarning, exitCodeForError, expandArgument, expandArguments, getCommandFactory, getDepth, getDescription, getListingGroupSize, getName, getReplacementCommand, getUsage, isDeprecated, isPathRecursable, isRecursive, isSorted, postProcessPath, processArgument, processArguments, processNonexistentPath, processOptions, processPath, processPathArgument, processPaths, processPaths, recursePath, run, run, setCommandFactory, setName, setRecursiveMethods inherited from class org.apache.hadoop.conf.Configured
getConf, setConf
-
Constructor Details
-
FsShellPermissions
public FsShellPermissions()
-
-
Method Details
-
registerCommands
Register the permission related commands with the factory- Parameters:
factory- the command factory
-