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.

hadoop installation directory /usr/hdp deleted

hadoop installation directory /usr/hdp deleted

New Contributor

Hello

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?

Thank you

7 REPLIES 7

Re: hadoop installation directory /usr/hdp deleted

Mentor

Scp the directory from another node

Re: hadoop installation directory /usr/hdp deleted

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.

Re: hadoop installation directory /usr/hdp deleted

New Contributor

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 :((

Re: hadoop installation directory /usr/hdp deleted

Mentor

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

Re: hadoop installation directory /usr/hdp deleted

Rising Star
@mohamed sabri marnaoui

It will be better to recreate your cluster.

1. You can export your cluster by using the following doc. Save the json file somewhere :

https://cwiki.apache.org/confluence/display/AMBARI/Blueprints#Blueprints-Step1:CreateBlueprint

2. Uninstall your cluster using :

https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.2/bk_installing_manually_book/content/ch_unin...

3. Install the cluster again using the blueprint generated in step1 :

https://cwiki.apache.org/confluence/display/AMBARI/Blueprints#Blueprints-Step2:RegisterBlueprintwith...

Highlighted

Re: hadoop installation directory /usr/hdp deleted

Expert Contributor

@mohamed sabri marnaoui

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

https://gist.github.com/nsabharwal/f57bb9e607114833df9b

do "yum install xxx*"

example:

yum install hbase*

Re: hadoop installation directory /usr/hdp deleted

New Contributor

Thank you all for your answers.. I think I have to reinstall... I will keep you informed