org.apache.hadoop.dfs
Class DFSShell

java.lang.Object
  extended byorg.apache.hadoop.dfs.DFSShell

public class DFSShell
extends Object

This class provides some DFS administrative access.

Author:
Mike Cafarella

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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DFSShell

public DFSShell(FileSystem fs)
Method Detail

ls

public void ls(String src,
               boolean recursive)
        throws IOException
Get a listing of all files in DFS at the indicated name

Throws:
IOException

du

public void du(String src)
        throws IOException
Throws:
IOException

mkdir

public void mkdir(String src)
           throws IOException
Create the given dir

Throws:
IOException

rename

public void rename(String srcf,
                   String dstf)
            throws IOException
Rename an DFS file

Throws:
IOException

copy

public void copy(String srcf,
                 String dstf,
                 Configuration conf)
          throws IOException
Copy an DFS file

Throws:
IOException

delete

public void delete(String srcf)
            throws IOException
Delete an DFS file

Throws:
IOException

report

public void report()
            throws IOException
Gives a report on how the FileSystem is doing

Throws:
IOException

main

public static void main(String[] argv)
                 throws IOException
main() has some simple utility methods

Throws:
IOException


Copyright © 2006 The Apache Software Foundation