天天看點

安裝Ambari和配置叢集

wget -O /etc/apt/sources.list.d/ambari.list http://public-repo-1.hortonworks.com/ambari/ubuntu16/2.x/updates/2.5.2.0/ambari.list

apt-key adv --recv-keys --keyserver keyserver.ubuntu.com B9733A7A07513CAD

apt-get update

apt-cache showpkg ambari-server

apt-cache showpkg ambari-agent

apt-cache showpkg ambari-metrics-assembly

apt-get install -y ambari-server

#選擇預設配置

ambari-server setup

ambari-server restart

#配置的前提是已經做完了伺服器之間root使用者的無密碼登入。

配置叢集的具體方法見參考2

參考:

1. https://docs.hortonworks.com/HDPDocuments/Ambari-2.5.2.0/bk_ambari-installation/content/download_the_ambari_repo_ubuntu16.html

2. https://docs.hortonworks.com/HDPDocuments/Ambari-2.5.2.0/bk_ambari-installation/content/ch_Deploy_and_Configure_a_HDP_Cluster.html  配置叢集的方法