Centos 7部署Ambria 2.7.0

Centos 7为最小安装,安装了开发工具。

1:安装最新版本的JDK,并设置JAVA_HOME环境变量

2:安装Maven,并设置MAVEN_HOME环境变量

3:yum install yum-utils epel-release python-devel

4:yum install python-pip

5:pip intall psutil

6:下载Amari 2.7.0,解压

7:mvn versions:set -DnewVersion=2.7.0.0.0

      pushd ambari-metrics

      mvn versions:set -DnewVersion=2.7.0.0.0

      popd

       mvn -B clean install rpm:rpm -DnewVersion=2.7.0.0.0 -DbuildNumber=631319b00937a8d04667d93714241d2a0cb17275 -DskipTests -Dpython.ver="python >= 2.6" -Drat.skip=true

8:ambari-server/target/rpm/ambari-server/RPMS/noarch/,目录下

      yum install ambari-server*.rpm

9:ambari-server start

10:ambari-agent/target/rpm/ambari-agent/RPMS/x86_64/,目录下

       yum install ambari-agent*.rpm

11:编辑/etc/ambari-agent/ambari.ini

       [server]

        hostname=localhost

12:ambari-agent start

你可能感兴趣的:(Centos 7部署Ambria 2.7.0)