|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.dfs.DFSShell
This class provides some DFS administrative access.
Constructor Summary | |
DFSShell(FileSystem fs)
|
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 |
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 |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DFSShell(FileSystem fs)
Method Detail |
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 static void main(String[] argv) throws IOException
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |