public static class FsShellPermissions.Chown
extends org.apache.hadoop.fs.FsShellPermissions
FsShellPermissions.Chgrp, FsShellPermissions.Chmod, FsShellPermissions.Chown
Modifier and Type | Field and Description |
---|---|
static String |
DESCRIPTION |
protected String |
group |
static String |
NAME |
protected String |
owner |
static String |
USAGE |
Constructor and Description |
---|
FsShellPermissions.Chown() |
Modifier and Type | Method and Description |
---|---|
protected void |
parseOwnerGroup(String ownerStr)
Parse the first argument into an owner and group
|
protected void |
processOptions(LinkedList<String> args)
Must be implemented by commands to process the command line flags and
check the bounds of the remaining arguments.
|
protected void |
processPath(org.apache.hadoop.fs.shell.PathData item)
Hook for commands to implement an operation to be applied on each
path for the command.
|
getCommandName, processRawArguments, run, runAll
displayError, displayError, displayWarning, exitCodeForError, expandArgument, expandArguments, getCommandFactory, getDepth, getDescription, getName, getReplacementCommand, getUsage, isDeprecated, isPathRecursable, isRecursive, postProcessPath, processArgument, processArguments, processNonexistentPath, processPathArgument, processPaths, recursePath, run, run, setCommandFactory, setName, setRecursive
getConf, setConf
public static final String NAME
public static final String USAGE
public static final String DESCRIPTION
protected String owner
protected String group
protected void processOptions(LinkedList<String> args) throws IOException
org.apache.hadoop.fs.shell.Command
processOptions
in class org.apache.hadoop.fs.shell.Command
args
- the command line argumentsIOException
protected void parseOwnerGroup(String ownerStr)
ownerStr
- string describing new ownershipprotected void processPath(org.apache.hadoop.fs.shell.PathData item) throws IOException
org.apache.hadoop.fs.shell.Command
processPath
in class org.apache.hadoop.fs.shell.Command
item
- a PathData
objectIOException
- if anything else goes wrong in the user-implementationCopyright © 2018 Apache Software Foundation. All Rights Reserved.