Steps
1. First install ambari
Setup ambari repo ( if you dont have access to internet you can setup a local one )
[root@sphdmst01 AMBARI-1.7.1]# ambari-server setup
Using python /usr/bin/python2.6
Setup ambari-server
Checking SELinux…
SELinux status is ‘disabled’
Ambari-server daemon is configured to run under user ‘root’. Change this setting [y/n] (n)?
Adjusting ambari-server permissions and ownership…
Checking firewall…
Checking JDK…
Do you want to change Oracle JDK [y/n] (n)?
Completing setup…
Configuring database…
Enter advanced database configuration [y/n] (n)? y
==============================================================================
Choose one of the following options:
[1] – PostgreSQL (Embedded)
[2] – Oracle
[3] – MySQL
[4] – PostgreSQL
==============================================================================
Enter choice (1): 4 — supose to be 1
Hostname (localhost):
Port (5432):
Database Name (ambari):
Postgres schema (ambari):
Username (ambari):
Enter Database Password (bigdata):
Configuring remote database connection properties…
WARNING: Before starting Ambari Server, you must run the following DDL against the database to create the schema: /var/lib/ambari-server/resources/Ambari-DDL-Postgres-CREATE.sql
Proceed with configuring remote database connection properties [y/n] (y)? y
Extracting system views…
..ambari-admin-1.7.1.88.jar
Adjusting ambari-server permissions and ownership…
Ambari Server ‘setup’ completed successfully.
#ambari-server start
access ambari via web browser
Setup PHD repo
[root@sphdmst01 PHD-3.0.1.0]# ./setup_repo.sh
PHD-3.0.1.0 Repo file successfully created at /etc/yum.repos.d/PHD-3.0.1.0.repo.
Use http://sphdmst01.mydev.com/PHD-3.0.1.0 to access the repository.
[root@sphdmst01 PHD-UTILS-1.1.0.20]# ./setup_repo.sh
PHD-UTILS-1.1.0.20 Repo file successfully created at /etc/yum.repos.d/PHD-UTILS-1.1.0.20.repo.
Use http://sphdmst01.mydev.com/PHD-UTILS-1.1.0.20 to access the repository.
View Repos
[root@sphdmst01 yum.repos.d]# ls -latr
total 40
-rw-r–r– 1 root root 529 Sep 15 2014 rhel-source.repo
-rw-r–r– 1 root root 5636 Aug 1 18:08 redhat.repo
-rw-r–r– 1 root root 101 Sep 15 12:29 ambari.repo
-rw-r–r– 1 root root 98 Sep 17 10:10 PHD-3.0.1.0.repo
drwxr-xr-x. 113 root root 12288 Sep 17 10:17 ..
-rw-r–r– 1 root root 119 Sep 17 10:27 PHD-UTILS-1.1.0.20.repo
drwxr-xr-x. 2 root root 4096 Sep 17 10:27 .
[root@sphdmst01 yum.repos.d]# more PHD-3.0.1.0.repo
[PHD-3.0.1.0]
name=PHD-3.0.1.0
baseurl=http://sphdmst01.mydev.com/PHD-3.0.1.0
gpgcheck=0
[root@sphdmst01 yum.repos.d]# more ambari.repo
[AMBARI-1.7.1]
name=AMBARI-1.7.1
baseurl=http://sphdmst01.mydev.com/AMBARI-1.7.1
gpgcheck=0
[root@cmtolsphdmst01 yum.repos.d]# more PHD-UTILS-1.1.0.20.repo
[PHD-UTILS-1.1.0.20]
name=PHD-UTILS-1.1.0.20
baseurl=http://sphdmst01.mydev.com/PHD-UTILS-1.1.0.20
gpgcheck=0
Enable security
Admin–> Security and Enable security
Get Started
Important: Before configuring Ambari to manage your Kerberos-enabled cluster, you must perform the
following manual steps on your cluster. Be sure to record the location of the keytab files for each
host and the principals for each Hadoop service. This information is required in order to use the wizard.
1.Install, configure and start your Kerberos KDC
2.Install and configure the Kerberos client on every host in the cluster
3.Create Kerberos principals for Hadoop services and hosts
4.Generate keytabs for each principal and place on the appropriate hosts
check ambari agent status
[root@sphdmst02 ~]# ambari-agent status
Found ambari-agent PID: 476715
ambari-agent running.
Agent PID at: /var/run/ambari-agent/ambari-agent.pid
Agent out at: /var/log/ambari-agent/ambari-agent.out
Agent log at: /var/log/ambari-agent/ambari-agent.log