Reply
Highlighted
Explorer
Posts: 13
Registered: ‎01-24-2018

how to clean uninstall HDFS

[ Edited ]

hi

 

I had a cloudera manager 5.14 install.

I selected all hosts in Admin UI, hit remove from cluster, then chose delete all hosts from cluster.

I had stopped the scm agent on all machines.

 

I find that my HDFS drives have some files left behind, how to clean them up ?

Does it matter if these files are left lying around, if I try a new installation ?

 

$ sudo ls /data/1/dfs/dn/current/
BP-<something>  VERSION

 

]$ sudo cat  /data/1/dfs/dn/current/VERSION
#<something>
storageID=<something>
clusterID=cluster16
cTime=0
datanodeUuid=<something>
storageType=DATA_NODE
layoutVersion=-56

 

Posts: 1,695
Kudos: 341
Solutions: 264
Registered: ‎07-31-2013

Re: how to clean uninstall HDFS

> Does it matter if these files are left lying around, if I try a new installation ?

That depends - are you looking to recover your data after the new install?

> I find that my HDFS drives have some files left behind, how to clean them up ?

You may simply wipe away the whole top-level DataNode and NameNode directories (such as /data/*/dfs) if you absolutely do not require any of that data anymore. This will be an irrecoverable operation.
Announcements