Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Build and install Ambari 1.4.1

Step 1: Download and build Ambari 1.4.1 source:

#]  wget http://people.apache.org/~swagle/ambari-release-1.4.1-rc0/ambari-1.4.1-incubating.tar.gz

#]  tar xfvz ambari-1.4.1-incubating.tar.gz

#]  cd ambari-1.4.1-incubating/

#]  mvn -X -B -e clean install package rpm:rpm -DskipTests -Dpython.ver="python >= 2.6"

Notes:

  1. Make sure you have rpm-build tool installed. (If not install it using, "yum install rpm-build")
  2. Make sure you have brunch installed before building. (Refer: https://cwiki.apache.org/confluence/display/AMBARI/Coding+Guidelines+for+Ambari)

Once the rpm build succeeds you should be able to install the Ambari repository.

Step 2: Install Ambari Server:

#] Get the rpm package from ambari-server/target/rpm/ambari-server/RPMS/noarch/

Wiki Markup
_\[For CentOS 5 or 6\]_

yum install ambari-server*.rpm    #This should also pull in postgres packages as well.

Wiki Markup
_\[For SLES 11\]_

zypper install ambari-server*.rpm    #This should also pull in postgres packages as well.

Step 3: Setup Ambari Server:

Run:

#]  ambari-server setup

Note that you will see a new set of prompts when running setup:

Wiki Markup
Ambari-server daemon is configured to run under user 'root'. Change this setting \[y/n\] \(n)?

You can proceed with a no (n).

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

For advanced database installation say y: with n it will default to username ambari and password bigdata.

Wiki Markup
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.

Wiki Markup
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

Wiki Markup
Password \[bigdata\]:

Password for the DB username, default is bigdata, pressing enter will use the default, else you can йфьифкenter your own password.

Wiki Markup
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.

#] Get the rpm package from ambari-agent/target/rpm/ambari-agent/RPMS/x86_64/

Wiki Markup
_\[For CentOS 5 or 6\]_

yum install ambari-agent*.rpm

Wiki Markup
_\[For SLES 11\]_

zypper install ambari-agent*.rpm

Step 6: Configure the ambari-agent

vim /etc/ambari-agent/ambari.ini

Wiki Markup
\[server\]

hostname=localhost

Make sure the above hostname points to the actual ambari server.

Step 7: Start the ambari-agent

#]  ambari-agent start

Note: You would need to download the HDP repo to the hosts before proceeding with the installation

Repository URLs:

Install Ambari 1.4.1 from public repositories

Step1: Download the Ambari repository

#]  cd /etc/yum.repos.d/

#]  wget <ambari-repo-url>

Choose appropriate URL based on the platform used.

Step2: Install Ambari server:

#]  yum install -y ambari-server

Rest of the steps for setup are exactly as the above steps except installing Ambari agent

Step5: Install Ambari agent:

If boostrapping the agent manually, make sure the ambari.repo file exists on all hosts.

#] yum install -y ambari-agent