1. Install JDK (optional)
2. Install Ambari
2.1 Configuration of Ambari yum repo
cd/etc/yum.repos.d/
wget Http://public-repo-1.hortonworks.com/ambari/centos6/1.x/updates/1.4.1.25/ambari.repo
2.2 Installing Ambari Server
Installing Ambari server on the server node
Yum Install-y ambari-server
2.3 Install Ambari Agent (automatic installation is not reliable)
Installing at the slave node
Yum Install-y ambari-agent
Yum Install-y ambari-log4j
3. Configure Ambari
3.1 Configuring Ambari Server
(1) configuration
Ambari-server setup-j Java_home-v
will be prompted to install JDK, the speed is OK, otherwise can download Jdk-6u31-linux-x64.bin, put under/var/lib/ambari-server/resources/
Then you will be prompted to configure the database, you can select Oracle or PostgreSQL, select n will be configured by default
Database type: PostgreSQL
Database: Ambari
User name: Ambari
Password: bigdata
If you are prompted to Oracle JDK License,yes
Wait for installation to complete
Start Ambari Server
[Plain] View plain copy ambari-server start and then access: http://master:8080
The installation is complete without any surprises.
Username/password: admin/admin
(2) Modify the port
Vi/etc/ambari-server/conf/ambari.properties
Add Configuration client.api.port=<port_number>
3.2 Configuring Ambari Agent
Vim/etcbari-agentbari.ini
[Server]
Hostname=<server_address>
3.3 Start
Ambari-server start
Ambari-agent start
Yum repolist ambari-server Setup