Set Up Password-less SSH
Steps:1. Generate public and private SSH keys on the Ambari Server host.
$ ssh-keygen
2. Copy the SSH Public Key (id_rsa.pub) to the root account on your target hosts.
.ssh/id_rsa
.ssh/id_rsa.pub
3. Add the SSH Public Key to the authorized_keys file on your target hosts.
$cat id_rsa.pub >> authorized_keys
4. Depending on your version of SSH, you may need to set permissions on the
.ssh directory (to 700) and the authorized_keys file in that directory
(to 600) on the target hosts.
$chmod 700 ~/.ssh$chmod 600 ~/.ssh/authorized_keys
5. From the Ambari Server, make sure you can connect to each host in the
cluster using SSH, without having to enter a password.
$ssh root@<remote.target.host>where <remote.target.host> has the value of each host name in your cluster.
6. If the following warning message displays during your first connection:
Are you sure you want to continue connecting (yes/no)? Enter Yes.
7. Retain a copy of the SSH Private Key on the machine from which you will
run the web-based Ambari Install Wizard.
Enable NTP on the Cluster and on the Browser Host
$yum install -y ntp$systemctl enable ntpd
Stop Firewall Services
$service firewalld stop
Edit the Host File
1. Using a text editor, open the hosts file on every host in your cluster.For example: $vi /etc/hosts
2. Add a line for each host in your cluster. The line should consist of the IP address and the Hostname and short Hostname
For example: 172.29.x.x abc.xxx.xom abc
Set the Hostname
Confirm that the hostname is set by running the following command:$hostname
$hostname -f
Both the commands should give the same hostname
Download the Ambari Repository
Steps:
2. Download the Ambari repository file to a directory on your installation host.
3. Confirm that the repository is configured by issuing the below command.
$yum repolist
Steps
1. Install the Ambari Server on master node. This also installs the default PostgreSQL database.
$yum install -y ambari-server
2. Setup ambari server
$ambari-server setup
3. Start the ambari server
$ambari-server start
Steps
1. Point your browser to http://<your.ambari.server>:8080,where <your.ambari.server>
is the name of your ambari server host.
2. Log in to the Ambari Server using the default user name/password: admin/admin.
This Completes the Ambari Installation.. In the next post I will show how to install HDP on Ambari..
After reading this blog i very strong in this topics and this blog really helpful to all... explanation are very clear so very easy to understand... thanks a lot for sharing this blogBig data hadoop online Course
ReplyDelete