Build and install Ambari 1.
...
5.
...
0
Step 1: Download and build Ambari 1.
...
5.
...
0 source
...
Code Block |
---|
wget http |
...
:// |
...
archive.apache.org/dist/ambari/ambari-1. |
...
5. |
...
0/ambari-1. |
...
5. |
...
0.tar.gz |
...
tar xfvz ambari-1. |
...
5. |
...
0.tar.gz |
...
cd ambari-1. |
...
5.0 mvn versions:set -DnewVersion=1.5.0 mvn -B clean install package rpm:rpm -DnewVersion=1.5.0 -DskipTests -Dpython.ver="python >= 2.6" |
Notes:
...
Note: You need to have tools such as rpm-build tool
...
,
...
Once the rpm build succeeds you should be able to install the Ambari repositorybrunch, etc. For details on prerequisites, please see Ambari Development.
Step 2:
...
Install Ambari Server
...
# Get Install the rpm package from ambari-server/target/rpm/ambari-server/RPMS/noarch/
[For CentOS 5 or 6]
Code Block |
---|
yum install ambari-server*.rpm #This should also pull in postgres packages as well. |
[For SLES 11]
Code Block |
---|
zypper install ambari-server*.rpm #This should also pull in postgres packages as well. |
Step 3:
...
Setup and Start Ambari Server
...
Run :
#] ambari-server setup
Note that you will see a new set of prompts when running setup:
Ambari-server daemon is configured to run under user 'root'. Change this setting [y/n] (n)?
You can proceed with a no (n).
Enter advanced database configuration [y/n] (n)?
For advanced database installation say y: with n it will default to username ambari and password bigdata.
Choose one of the following options:
[1] - PostgreSQL (Embedded)
[2] - Oracle
You can choose 1 or 2 depending on the database you want to use.
Username [ambari]:
You can use any username here. This is the username that ambari uses to connect to DB. If you press enter it will use the default ambari-server
Password [bigdata]:
Password for the DB username, default is bigdata, pressing enter will use the default, else you can enter your own password.
Do you accept the Oracle Binary Code License Agreement [y/n] (y)?
This is to accept Oracle JDK’s license. Go ahead and say ‘y’.
Start Ambari server
#] ambari-server start
Step 4: BootStrap the Agents using the UI and begin the deploy/start process.
Go to the web server UI at:
$AMBARI_SERVER:8080/
Login using:
admin/admin
The step below are only required if the ambari agent is being bootstrapped manually.
Step 5: Install the ambari agent
The following command needs to be on all ambari agent hosts.
the setup command to configure your Ambari Server, Database, JDK, LDAP, and other options:
Code Block |
---|
ambari-server setup |
Follow the on-screen instructions to proceed.
Once set up is done, start Ambari Server:
Code Block |
---|
ambari-server start |
Step 4: Install and Start Ambari Agent on All Hosts
Note: This step needs to be run on all hosts that will be managed by Ambari.
Copy #] Get the rpm package from ambari-agent/target/rpm/ambari-agent/RPMS/x86_64/ and run:
[For CentOS 5 or 6]
Code Block |
---|
yum install ambari-agent*.rpm |
[For SLES 11]
Code Block |
---|
zypper install ambari-agent*.rpm |
Step 6: Configure the ambari-agent
vim Edit /etc/ambari-agent/ambari.ini
Code Block |
---|
... [server] |
...
hostname=localhost ... |
Make sure the above hostname hostname under the [server] section points to the actual ambari server.
Step 7: Start the ambari-agent
Ambari Server host, rather than "localhost".
...
Code Block |
---|
ambari-agent start |
Note: You would need to download the HDP repo to the hosts before proceeding with the installation
Repository URLs:
...
(Redhat / CentOS) 6
Step 5: Deploy Cluster using Ambari Web UI
Open up a web browser and go to http://
...
<ambari-
...
(Redhat / CentOS) 5
...
http://public-repo-1.hortonworks.com/HDP/centos5/2.x/updates/2.0.6.0/hdp.repo
server-host>:8080.
Log in with username admin and password admin and follow on-screen instructions.
Under Install Options page, enter the hosts to add to the cluster. Do not supply any SSH key, and check "Perform manual registration on hosts and do not use SSH" and hit "Next".
...
SUSE
...