org.apache.hadoop.fs
Class FsShell
java.lang.Object
org.apache.hadoop.util.ToolBase
org.apache.hadoop.fs.FsShell
- All Implemented Interfaces:
- Configurable, Tool
- Direct Known Subclasses:
- DFSAdmin
public class FsShell
- extends ToolBase
Provide command line access to a FileSystem.
Fields inherited from class org.apache.hadoop.util.ToolBase |
conf |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fs
protected FileSystem fs
dateForm
public static final SimpleDateFormat dateForm
modifFmt
protected static final SimpleDateFormat modifFmt
FsShell
public FsShell()
init
protected void init()
throws IOException
- Throws:
IOException
getCurrentTrashDir
public Path getCurrentTrashDir()
- Returns the Trash object associated with this shell.
byteDesc
public static String byteDesc(long len)
- Return an abbreviated English-language desc of the byte length
limitDecimal
public static String limitDecimal(double d,
int placesAfterDecimal)
run
public int run(String[] argv)
throws Exception
- run
- Parameters:
argv
- command specific arguments
- Returns:
- exit code
- Throws:
Exception
close
public void close()
throws IOException
- Throws:
IOException
main
public static void main(String[] argv)
throws Exception
- main() has some simple utility methods
- Throws:
Exception
Copyright © 2006 The Apache Software Foundation