大醉和尚  
qq:3262641915,如有问题,欢迎讨论.

找资源 hdp3.1.6

https://docs.cloudera.com/HDPDocuments/HDPforCloud/HDPforCloud-3.1/hdp-release-notes/content/relnotes.html

安装ambari 2.7.5

参考:
文档:https://cwiki.apache.org/confluence/display/AMBARI/Installation+Guide+for+Ambari+2.7.5
经验:https://blog.csdn.net/jiajane/article/details/103952426

  • 环境

1、centos7.8

2、jdk 8

tar -zxvf jdk-8u281-linux-x64.tar.gz
mv jdk1.8.0_281 /opt/tools/installed/
## /etc/profile
export JAVA_HOME=/opt/tools/installed/jdk1.8.0_281
export PATH=$JAVA_HOME/bin:$PATH

3、mvn 3.6.3

tar -zxvf apache-maven-3.6.3-bin.tar.gz
mv apache-maven-3.6.3 /opt/tools/installed/
## /etc/profile
export M2_HOME=/opt/tools/installed/apache-maven-3.6.3
export PATH=$M2_HOME/bin:$PATH

4、nodejs

# 更换 yum node 源
curl -sL https://rpm.nodesource.com/setup_10.x | sudo bash -  (或者最新的长期支持版 https://rpm.nodesource.com/setup_lts.x )
yum install nodejs
npm install -g node-gyp bower

5、rpm-build

yum -y install rpm
yum -y install rpm-build

6、gcc-c++
yum install -y gcc-c++

7、git
yum install -y git

8、ant

tar -zxvf apache-ant-1.9.15-bin.tar.gz
mv apache-ant-1.9.15 /opt/tools/installed/
export ANT_HOME=/opt/tools/installed/apache-ant-1.9.15
export PATH=$ANT_HOME/bin:$PATH

9、修改 ambari-admin/pom.xml 中 nodeVersion、npmVersion

<configuration>
              <nodeVersion>v6.17.1</nodeVersion>
              <npmVersion>3.10.10</npmVersion>
              <workingDirectory>src/main/resources/ui/admin-web/</workingDirectory> 
<npmInheritsProxyConfigFromMaven>false</npmInheritsProxyConfigFromMaven>
            </configuration>

10、https://docs.cloudera.com/HDPDocuments/Ambari-2.7.5.0/bk_ambari-installation/content/enable_ntp_on_the_cluster_and_on_the_browser_host.html
yum install -y ntp

节点心跳丢失

ambari-agent restart

posted on 2021-02-09 11:30  大醉和尚  阅读(100)  评论(0编辑  收藏  举报