I'm running hadoop 2.3 Cluster (Ambari managed)
I accidently removed /usr/hdp directory. My (test) cluster could not start anymore. I tried to download client configuration files from Amabari but still need HDP binaries.
what could be the solution?
Yes copying from another node will work. i had 2.3 and upgraded to 2.4. but one of our clients was still referring to 2.3 and i deleted 2.3 accidentally. When i restored 2.3 directories, the client had no issues.
it's a good idea but unfortunately same directory was deleted on other nodes :(
in fact I used the python script to clear oldest versions but it deleted all my directories :((
Then you have to refer to the rest api guide to reinstall every component of install them manually on each node, i.e.
yum install hadoop* yum install hive* etc
It will be better to recreate your cluster.
1. You can export your cluster by using the following doc. Save the json file somewhere :
2. Uninstall your cluster using :
3. Install the cluster again using the blueprint generated in step1 :
since you have deleted /usr/hdp from other nodes so you can manually reinstall packages
for getting list of packages do some reverse engineering and get list of packages from below link
do "yum install xxx*"
yum install hbase*