Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

how to clean uninstall HDFS

Highlighted

how to clean uninstall HDFS

Explorer

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

 

1 REPLY 1

Re: how to clean uninstall HDFS

Master Guru
> 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.