Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

can reisntallation wipe hdfs data ?

avatar
New Member

We are still building this 7 node cluster, and before we finish building it, our name node and the ambari-server which are co-existing on the same node died due to manual error related to OS. If I perform a re-installation (of both Ambari-server and Namenode) on the same node with fresh OS installed, will it wipe my data ? What about the services ? do I have to completely remove all services and re-install them ? Please note that this cluster is still under work, while this happened, and we did not configure HA.

1 ACCEPTED SOLUTION

avatar
Expert Contributor

@Teja Damineni

If I perform a re-installation (of both Ambari-server and Namenode) on the same node with fresh OS installed, will it wipe my data ?

If you have taken backup of NameNode metadata you can use it to reset the NameNode. Without the backup you can't recover your data.

What about the services ?do I have to completely remove all services and re-install them ?

If you have backup of ambari database you can use it to reinitialize ambari to its old state, else you have to reinstall everything.

View solution in original post

3 REPLIES 3

avatar
Expert Contributor

@Teja Damineni

If I perform a re-installation (of both Ambari-server and Namenode) on the same node with fresh OS installed, will it wipe my data ?

If you have taken backup of NameNode metadata you can use it to reset the NameNode. Without the backup you can't recover your data.

What about the services ?do I have to completely remove all services and re-install them ?

If you have backup of ambari database you can use it to reinitialize ambari to its old state, else you have to reinstall everything.

avatar
New Member

@Ajay I absolutely do not have any backup of this cluster of any sort. However, the secondary Name node seems to be up more days than Primary Name node. Our UNIX admins, did a OS refresh without touching /data, so the data was safe. Before starting anything on this cluster, I did put it on safe mode. I did a re-install and luckily I had the document from the first install and I have chosen . YARN and HBase are acting up crazy, but all the Hdfs data is right there.... adn the cluster is up and green. We will have to integrate AD and Kerberos. But so far so good.

avatar
Expert Contributor
@Teja Damineni

Good to know that your data is safe. Recommend taking regular backup of NameNode metadata to avoid any future issues.