Ambari编译

135 篇文章 1 订阅

cloudera manager 再无社区版
hadoop hdp不再更改 ,纪念一下失去的青春
1.1 环境搭建
jdk1.8.0_161
apache-maven-3.5.3
CentOS 7.4.1708
1
2
3
1.2 JDK、Maven安装
[root@localhost java]# cat /etc/centos-release
CentOS Linux release 7.4.1708 (Core)
[root@localhost java]# java -version
java version “1.8.0_161”
Java™ SE Runtime Environment (build 1.8.0_161-b12)
Java HotSpot™ 64-Bit Server VM (build 25.161-b12, mixed mode)
[root@localhost java]# mvn -v
Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297; 2018-02-24T14:49:05-05:00)
Maven home: /usr/java/apache-maven-3.5.3
Java version: 1.8.0_161, vendor: Oracle Corporation
Java home: /usr/java/jdk1.8.0_161/jre
Default locale: en_US, platform encoding: UTF-8
OS name: “linux”, version: “3.10.0-693.el7.x86_64”, arch: “amd64”, family: “unix”
[root@localhost java]#
1
2
3
4
5
6
7
8
9
10
11
12
13
14
备注:安装完Maven之后,最好将镜像仓库改成阿里的镜像仓库,速度较快!

推荐Maven的settings镜像配置:

alimaven aliyun maven http://maven.aliyun.com/nexus/content/groups/public/ central ui Mirror from UK http://uk.maven.org/maven2/ central jboss-public-repository-group JBoss Public Repository Group http://repository.jboss.org/nexus/content/groups/public central repo2 Mirror from Maven Repo2 http://repo2.maven.org/maven2/ central 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1.3 安装rpm-build yum install rpm-build 1 1.4 安装gcc&gcc-c++ yum install gcc gcc-c++ 1 1.5 安装Git yum install git 1 1.6 安装NodeJS # 下载、编译安装、验证安装 $ wget http://nodejs.org/dist/v0.10.44/node-v0.10.44.tar.gz $ tar zxf node-v0.10.44.tar.gz $ cd node-v0.10.44 $ ./configure && make && sudo make install $ node -v # 安装插件 $ npm install -g brunch@1.7.20 $ npm install -g phantomjs@1.9.20 $ npm install -g bower $ npm install -g gulp 1 2 3 4 5 6 7 8 9 10 11 1.7 安装Python2.6 $ wget https://www.python.org/ftp/python/2.6.9/Python-2.6.9.tar.xz $ tar -Jvf Python-2.6.9.tar.xz $ cd Python-2.6.9 $ ./configure $ make $ make install $ ln -s /usr/local/bin/python2.6 /usr/bin/python2.6 $ ln -s /usr/local/bin/python2.6-config /usr/bin/python2.6-config 1 2 3 4 5 6 7 8 1.8 安装python-devel yum install python-devel 1 1.9 安装python setuptools $ wget https://pypi.python.org/packages/25/5d/cc55d39ac39383dd6e04ae80501b9af3cc455be64740ad68a4e12ec81b00/setuptools-0.6c11-py2.7.egg#md5=fe1f997bc722265116870bc7919059ea $ wget http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c11-py2.6.egg#md5=bfa92100bd772d5a213eedd356d64086 $ sh setuptools-0.6c11-py2.7.egg $ sh setuptools-0.6c11-py2.6.egg 1 2 3 4 1.10 下载大文件,修改pom.xml 有些包比较大,或者编译时下载时间较长,可以提前下载到本地目录,再修改pom.xml文件指定到本地目录,比如在Ambari2.7.3中,我提前下载好的文件为:
grafana-2.6.0.linux-x64.tar.gz
hadoop-3.1.0.3.0.0.0-1634.tar.gz
hbase-2.0.0.3.0.0.0-1634-bin.tar.gz
phoenix-5.0.0.3.0.0.0-1634.tar.gz
1
2
3
4
关于这几个文件的下载地址,可以在pom.xml中查看!!!

修改ambari-metrics下的pom.xml内容为:

1.13 编译成功的标志
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Ambari Main 2.7.3.0.0 … SUCCESS [ 3.442 s]
[INFO] Apache Ambari Project POM … SUCCESS [ 0.096 s]
[INFO] Ambari Web … SUCCESS [ 51.557 s]
[INFO] Ambari Views … SUCCESS [ 2.089 s]
[INFO] Ambari Admin View … SUCCESS [ 5.611 s]
[INFO] ambari-utility 1.0.0.0-SNAPSHOT … SUCCESS [ 2.837 s]
[INFO] ambari-metrics … SUCCESS [ 0.701 s]
[INFO] Ambari Metrics Common … SUCCESS [ 10.591 s]
[INFO] Ambari Metrics Hadoop Sink … SUCCESS [ 5.419 s]
[INFO] Ambari Metrics Flume Sink … SUCCESS [ 2.393 s]
[INFO] Ambari Metrics Kafka Sink … SUCCESS [ 2.123 s]
[INFO] Ambari Metrics Storm Sink … SUCCESS [ 4.527 s]
[INFO] Ambari Metrics Storm Sink (Legacy) … SUCCESS [ 3.932 s]
[INFO] Ambari Metrics Collector … SUCCESS [02:41 min]
[INFO] Ambari Metrics Monitor … SUCCESS [ 1.275 s]
[INFO] Ambari Metrics Grafana 2.1.0.0.0 … SUCCESS [ 0.939 s]
[INFO] Ambari Metrics Host Aggregator … SUCCESS [ 5.329 s]
[INFO] Ambari Metrics Assembly … SUCCESS [01:30 min]
[INFO] Ambari Service Advisor 1.0.0.0-SNAPSHOT … SUCCESS [ 0.486 s]
[INFO] Ambari Server … SUCCESS [30:42 min]
[INFO] Ambari Functional Tests … SUCCESS [ 0.994 s]
[INFO] Ambari Agent … SUCCESS [02:58 min]
[INFO] ambari-logsearch … SUCCESS [ 1.581 s]
[INFO] Ambari Logsearch Appender … SUCCESS [ 14.171 s]
[INFO] Ambari Logsearch Config Api … SUCCESS [ 0.299 s]
[INFO] Ambari Logsearch Config JSON … SUCCESS [ 0.289 s]
[INFO] Ambari Logsearch Config Solr … SUCCESS [ 14.207 s]
[INFO] Ambari Logsearch Config Zookeeper … SUCCESS [ 1.067 s]
[INFO] Ambari Logsearch Config Local … SUCCESS [ 0.127 s]
[INFO] Ambari Logsearch Log Feeder Plugin Api … SUCCESS [ 10.531 s]
[INFO] Ambari Logsearch Log Feeder Container Registry … SUCCESS [ 8.680 s]
[INFO] Ambari Logsearch Log Feeder … SUCCESS [ 59.983 s]
[INFO] Ambari Logsearch Web … SUCCESS [03:41 min]
[INFO] Ambari Logsearch Server … SUCCESS [03:03 min]
[INFO] Ambari Logsearch Assembly … SUCCESS [ 5.146 s]
[INFO] Ambari Logsearch Integration Test … SUCCESS [01:11 min]
[INFO] ambari-infra … SUCCESS [ 12.123 s]
[INFO] Ambari Infra Solr Client … SUCCESS [ 12.837 s]
[INFO] Ambari Infra Solr Plugin … SUCCESS [02:18 min]
[INFO] Ambari Infra Manager … SUCCESS [01:51 min]
[INFO] Ambari Infra Assembly … SUCCESS [ 11.453 s]
[INFO] Ambari Infra Manager Integration Tests 2.7.3.0.0 … SUCCESS [ 16.413 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 54:34 min
[INFO] Finished at: 2019-04-16T22:54:37-04:00

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值