hadoop - Delete folders from HDFS in dd-MM-yyyy format for a year -


how delete bunch of directories in hadoop year? folder created daily. name scheme "dd-mm-yyyy". how delete folders of particular year? tried getting list of folders hadoop fs -find / "*1995" unable delete them piping them rm command.

hadoop cli supports both recursive rm (needed delete directories) , wildcards:

hadoop fs -rm -r -f /path/*-1995 

Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -