How to install and configure Ambari server after Hotonwork cluster setup?
This is probably related to your other question https://community.hortonworks.com/questions/6707/ambari-server-recoveryreconfigure.html
@Nilesh Could you please explain what you mean by ambari server has been crashed? did you loose the Ambari Database and all its data?
@NileshThis would be quite challenging and complex as you will have to perform fresh Ambari setup and complete Ambari Takeover of existing HDP cluster in absence of database backup. You have three options:
1. If cluster is not production and there is feasibility of cleaning up the cluster, then I would recommend to clean up the cluster and setup fresh one using Ambari. This would save you a lot of time. Even if there is some data, just weigh in time and effort trade off for backing up data and doing fresh install vs performing Ambari Takeover as explained at high level in next two options.
2. Cluster Takeover using Ambari APIs
3. Third option would be to perform a dummy cluster install using Ambari and then updating configs in Ambari.
Note: Ensure that you take database, install directories and config backups at regular frequency going forward and move those to another backup server or HDFS to avoid further issues due to hardware failures.
I have tried ambari blueprint but i think i takes only HDP repo files. How i can use ambari to monitor/provision existing configured plain vanilla apache hadoop,hbase cluster that is not HDP one.
This is the most appropriate way to successfully reinstall Ambari
Cleaning up remnants of Ambari Ensure no ambari-server or ambari-agent processes are running kill -9 ambari-server is a java process ambari-agent is a python daemon
Execute "ambari-server reset" to reset the database ambari-server re-install does not overwrite the existing DB. So its a good idea to explicitly call "ambari-server reset"
Erase ambari packages ambari-server,
Essentially, if you do a "yum list installed | grep ambari" after removal the result should be empty
Remove ambari.repo file at /etc/yum.repos.d/ While most of the following folders will either be deleted/empty or have log files, you can choose to explicitly delete them
Try using the HostCleanup.py
This is inyteractive here is a short output
You have elected to remove all users as well. If it is not intended then use option --skip "users". Do you want to continue [y/n] (n)