Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Sharlie89/hdfs-del

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

This script delete old files and dirs in HDFS. Is prepared to delete files with name format name.numbers. 
You can change this in the script.

Also, it uses variables to set the directory where HDFS will search for old files.

USAGE:

bash hdfs_del.sh days

Ex: bash hdfs_del.sh 3

It will delete all files with 3 days old


NOTE: All files will be erased, this script doesn't use the HFDS trash.

About

Bash script to delete old files in HDFS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages