Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
MapReduce >> mail # user >> directory delete in hadoop


Copy link to this message
-
Re: directory delete in hadoop
yes this will delete the entire directory and its contents (assuming
that user running the code has the permission to delete the directory)

On Wed, Sep 5, 2012 at 4:44 PM, nisha sharma <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I m usin the below method to delete a directory named testingfolder, will
> this method delete all my jpeg files inside this directory will these files
> also get deleted from hdfs along with the directory
>
> fileSystem.delete(
> new Path("/user/testingfolder"),true);

--
Nitin Pawar
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB