Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Namenode fs utilization

avatar
Contributor

Is it safe to delete the files in /hadoop/dfs/name/current ?


Since we're getting 100% for this directory in hdfs-namenode

bash-4.2$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/rbd1 935G 935G 100M 100% /hadoop/dfs/name

bash-4.2$ pwd
/hadoop/dfs/name/current
bash-4.2$ cd ..
bash-4.2$ du -sh *
935G current
4.0K in_use.lock

 

Also, the earliest data available in this folder was on July 20

1 REPLY 1

avatar
Super Collaborator

@Noel_0317 The directory /hadoop/dfs/name/ might be your Namenode data directory that contains the metadata in the form of fsimage and edits. So won't recommend deleting it if that's the case. You can confirm if this directory is indeed the NN data directory by checking the HDFS configuration.

If the cluster is working and still taking writes, you can verify if the Namenode Data dir has been changed to a different mount point if the latest data available on it is from July.