townie
townie

Reputation: 322

Remove folders from HDFS from command line

I am looking to remove folders and files for my hive user.

hadoop fs -rm -R -f -skipTrash /user/hive/warehouse/storage_20160315

Upvotes: 0

Views: 9324

Answers (1)

Kfactor21
Kfactor21

Reputation: 412

One of the ways of doing this is as below:

hadoop fs -rm -r /user/hive/warehouse/storage_20160315

This will remove the content of storage_20160315 a well as the directory itself.

Or you can use HUE interface as well

Upvotes: 3

Related Questions