Yes FsShell.java implements most of the Shell commands. You could also use the FileSystem API http://hadoop.apache.org/core/docs/current/api/org/apache/hadoop/fs/FileSystem.html Simple example http://wiki.apache.org/hadoop/HadoopDfsReadWriteExample
Thanks, Lohit ----- Original Message ---- From: Kayla Jay <[EMAIL PROTECTED]> To: core-user@hadoop.apache.org Sent: Monday, April 21, 2008 7:40:52 PM Subject: Run DfsShell command after your job is complete? Hello - Is there any way to run a DfsShell command after your job is complete within that same job run/main class? I.e after you're done with the maps and the reduces i want to directly move out of hdfs into local file system to load data into a database. can you run a DfsShell within your job class or within your java class that runs the job? thanks --------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.