Build and install Ambari 2.7.5
Refer Ambari Development for prerequisites and additional information on how to build Apache Ambari.
Step 1: Download and build Ambari 2.7.5 source
Go to http://www.apache.org/dyn/closer.cgi/ambari/ambari-2.7.5 and find the suggested mirror for download. The process to verify the download is described is at http://www.apache.org/dyn/closer.cgi#verify
wget https://www-eu.apache.org/dist/ambari/ambari-2.7.5/apache-ambari-2.7.5-src.tar.gz (use the suggested mirror from above) tar xfvz apache-ambari-2.7.5-src.tar.gz cd apache-ambari-2.7.5-src mvn versions:set -DnewVersion=220.127.116.11.0 pushd ambari-metrics mvn versions:set -DnewVersion=18.104.22.168.0 popd
RHEL (CentOS 7) & SUSE (SLES 12 SP2 & SP3):
mvn -B clean install rpm:rpm -DnewVersion=22.214.171.124.0 -DbuildNumber=5895e4ed6b30a2da8a90fee2403b6cab91d19972 -DskipTests -Dpython.ver="python >= 2.6"
mvn -B clean install jdeb:jdeb -DnewVersion=126.96.36.199.0 -DbuildNumber=5895e4ed6b30a2da8a90fee2403b6cab91d19972 -DskipTests -Dpython.ver="python >= 2.6"
Note: You need to have tools such as rpm-build tool, brunch, etc. For details on prerequisites, please see Ambari Development.
Step 2: Install Ambari Server
Install the rpm package from ambari-server/target/rpm/ambari-server/RPMS/noarch/
[For CentOS 7]
yum install ambari-server*.rpm #This should also pull in postgres packages as well.
[For SLES 12]
zypper install ambari-server*.rpm #This should also pull in postgres packages as well.
apt-get install ./ambari-server*.deb #This should also pull in postgres packages as well.
Step 3: Setup and Start Ambari Server
Run the setup command to configure your Ambari Server, Database, JDK, LDAP, and other options:
Follow the on-screen instructions to proceed.
Once set up is done, start Ambari Server:
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 the rpm package from ambari-agent/target/rpm/ambari-agent/RPMS/x86_64/ and run:
[For CentOS 7]
yum install ambari-agent*.rpm
[For SLES 12]
zypper install ambari-agent*.rpm
apt-get install ./ambari-agent*.deb
... [server] hostname=localhost ...
Make sure hostname under the [server] section points to the actual Ambari Server host, rather than "localhost".
Step 5: Deploy Cluster using Ambari Web UI
Open up a web browser and go to http://<ambari-server-host>:8080.
Log in with username admin and password admin and follow on-screen instructions. Secure your environment by ensuring your administrator details are changed from the default values as soon as possible.
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".