public class WowFsShell
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool
| Modifier and Type | Class and Description |
|---|---|
protected class |
WowFsShell.Help
Displays short usage of commands sans the long description
|
protected class |
WowFsShell.Usage
Display help for commands with their short usage and long description
|
| Modifier and Type | Field and Description |
|---|---|
protected String |
basePath |
protected org.apache.hadoop.fs.shell.CommandFactory |
commandFactory |
PrintStream |
error |
PrintStream |
out |
| Constructor and Description |
|---|
WowFsShell()
Default ctor with no configuration.
|
WowFsShell(org.apache.hadoop.conf.Configuration conf,
String basePath)
Construct a FsShell with the given configuration.
|
| Modifier and Type | Method and Description |
|---|---|
String |
_out(ByteArrayOutputStream wow) |
void |
close()
Performs any necessary cleanup
|
String |
getError() |
protected org.apache.hadoop.fs.FileSystem |
getFS() |
String |
getOut() |
protected void |
init() |
int |
run(String[] argv)
run
|
protected String basePath
protected org.apache.hadoop.fs.shell.CommandFactory commandFactory
public final PrintStream out
public final PrintStream error
public WowFsShell()
Configured.setConf(Configuration) with a valid configuration prior
to running commands.public WowFsShell(org.apache.hadoop.conf.Configuration conf,
String basePath)
run(String[])conf - the hadoop configurationpublic String getOut()
public String _out(ByteArrayOutputStream wow)
public String getError()
protected org.apache.hadoop.fs.FileSystem getFS()
throws IOException
IOExceptionprotected void init()
throws IOException
IOExceptionpublic int run(String[] argv) throws Exception
run in interface org.apache.hadoop.util.ToolExceptionpublic void close()
throws IOException
IOException - upon errorCopyright © 2021. All rights reserved.