未分类

Ambari编译记录

Download and build Ambari 2.7.5 source

1
2
3
4
5
6
7
8
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=2.7.5.0.0

pushd ambari-metrics
mvn versions:set -DnewVersion=2.7.5.0.0
popd

RHEL/CentOS 7

1
mvn -B clean install rpm:rpm -DnewVersion=2.7.5.0.0 -DbuildNumber=5895e4ed6b30a2da8a90fee2403b6cab91d19972 -DskipTests -Dpython.ver="python >= 2.6"

Ubuntu/Debian

1
mvn -B clean install jdeb:jdeb -DnewVersion=2.7.5.0.0 -DbuildNumber=5895e4ed6b30a2da8a90fee2403b6cab91d19972 -DskipTests -Dpython.ver="python >= 2.6"

?? ?? -Drat.skip=true ?? RAT ??

cp account.jar bak-account.jar.date "+%Y%m%dT%H%M%S%z"

Step 2: Install Ambari Server

RHEL/CentOS 7

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

Ubuntu/Debian

1
apt-get install ./ambari-server*.deb   #This should also pull in postgres packages as well.

Setup and Start Ambari Server

Run the setup command to configure your Ambari Server, Database, JDK, LDAP, and other options:

1
ambari-server setup

Follow the on-screen instructions to proceed.

Once set up is done, start Ambari Server:

1
ambari-server start

Step 4: Install and Start Ambari Agent on All Hosts

Copy the rpm package from ambari-agent/target/rpm/ambari-agent/RPMS/x86_64/ and run:

RHEL/CentOS 7

1
yum install ambari-agent*.rpm

Ubuntu/Debian

1
apt-get install ./ambari-agent*.deb

Edit /etc/ambari-agent/ambari.ini.

1
2
3
4
5
6
7
...
[server]
hostname=localhost

...

Make sure hostname under the [server] section points to the actual Ambari Server host, rather than "localhost".

ambari-agent start
`

Step 5: Deploy Cluster using Ambari Web UI

Open up a web browser and go to http://: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”.

分享到