Install ambari-server and ambari-agent

[root@phdgrd01 staging]# cp jdk-7u67-linux-x64.tar.gz  /var/lib/ambari-server/resources/

[root@phdgrd01 staging]# ls -latr

total 252336

drwxr-xr-x  3  106 gpadmin      4096 Mar 31 13:44 AMBARI-1.7.1

dr-xr-x—. 6 root root         4096 Apr  2 11:04 ..

-rw-r–r–  1 root root     14893300 Apr  2 11:09 PHD-UTILS-1.1.0.20-centos6.tar.gz

-rw-r–r–  1 root root    101097229 Apr  2 11:12 AMBARI-1.7.1-87-centos6.tar.gz

-rw-r–r–  1 root root         7426 Apr  2 14:49 UnlimitedJCEPolicyJDK7.zip

drwxr-xr-x  3 root root         4096 Apr  2 14:55 .

-rw-r–r–  1 root root    142376665 Apr  2  2015 jdk-7u67-linux-x64.tar.gz

 

[root@phdgrd01 staging]# cp UnlimitedJCEPolicyJDK7.zip /var/lib/ambari-server/resources/

 

[root@phdgrd01 staging]# 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 ‘admin’. Change this setting [y/n] (n)?

Adjusting ambari-server permissions and ownership…

Checking firewall…

Checking JDK…

[1] – Oracle JDK 1.7 + Java Cryptography Extension (JCE) Policy Files 7

[2] – Custom JDK

==============================================================================

Enter choice (1):1

JDK already exists, using /var/lib/ambari-server/resources/jdk-7u67-linux-x64.tar.gz

Installing JDK to /usr/jdk64

Successfully installed JDK to /usr/jdk64/jdk1.7.0_67

JCE Policy archive already exists, using /var/lib/ambari-server/resources/UnlimitedJCEPolicyJDK7.zip

Completing setup…

Configuring database…

Enter advanced database configuration [y/n] (n)?

Default properties detected. Using built-in database.

Checking PostgreSQL…

Running initdb: This may take upto a minute.

Initializing database: [  OK  ]

 

About to start PostgreSQL

Configuring local database…

Connecting to local database…done.

Configuring PostgreSQL…

Restarting PostgreSQL

Extracting system views…

..ambari-admin-1.7.1.87.jar

 

Adjusting ambari-server permissions and ownership…

Ambari Server ‘setup’ completed successfully.

 

[root@phdgrd01 staging]# ambari-server start

Using python  /usr/bin/python2.6

Starting ambari-server

Ambari Server running with ‘root’ privileges.

Organizing resource files at /var/lib/ambari-server/resources…

Server PID at: /var/run/ambari-server/ambari-server.pid

Server out at: /var/log/ambari-server/ambari-server.out

Server log at: /var/log/ambari-server/ambari-server.log

Waiting for server start………………..

Ambari Server ‘start’ completed successfully.

 

[root@phdgrd01 staging]# ambari-server status

Using python  /usr/bin/python2.6

Ambari-server status

Ambari Server running

Found Ambari Server PID: 4787 at: /var/run/ambari-server/ambari-server.pid

test from browser ,

Open http://{ambari.server.host}:8080 in the web browser

Login to the server using admin and the password admin ( You can change later )

ambari

After logging into Ambari, click on the Launch Install Wizard button to enter into cluster creation wizard.

Leave a comment