|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.util.ToolBase
org.apache.hadoop.dfs.DFSShell
public class DFSShell
This class provides some DFS administrative access.
Field Summary |
---|
Fields inherited from class org.apache.hadoop.util.ToolBase |
---|
conf, LOG |
Constructor Summary | |
---|---|
DFSShell()
|
Method Summary | |
---|---|
void |
copy(String srcf,
String dstf,
Configuration conf)
Copy an DFS file |
void |
delete(String srcf)
Delete an DFS file |
void |
du(String src)
|
void |
init()
|
void |
ls(String src,
boolean recursive)
Get a listing of all files in DFS at the indicated name |
static void |
main(String[] argv)
main() has some simple utility methods |
void |
mkdir(String src)
Create the given dir |
void |
rename(String srcf,
String dstf)
Rename an DFS file |
void |
report()
Gives a report on how the FileSystem is doing |
int |
run(String[] argv)
run |
void |
setReplication(short newRep,
Path src,
boolean recursive)
Set the replication for the path argument if it's a directory and recursive is true, set replication for all the subdirs and those files too |
Methods inherited from class org.apache.hadoop.util.ToolBase |
---|
doMain, getConf, setConf |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DFSShell()
Method Detail |
---|
public void init() throws IOException
IOException
public void setReplication(short newRep, Path src, boolean recursive) throws IOException
IOException
public void ls(String src, boolean recursive) throws IOException
IOException
public void du(String src) throws IOException
IOException
public void mkdir(String src) throws IOException
IOException
public void rename(String srcf, String dstf) throws IOException
IOException
public void copy(String srcf, String dstf, Configuration conf) throws IOException
IOException
public void delete(String srcf) throws IOException
IOException
public void report() throws IOException
IOException
public int run(String[] argv) throws Exception
argv
- command specific arguments
Exception
public static void main(String[] argv) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |