Installation Guide for Ambari
yum install Ambari 2.4.3
Refer Ambari Development for prerequisites and additional information on how to build Apache Ambari.
Ambari安装之部署本地库:https://yq.aliyun.com/articles/368491?spm=5176.10695662.1996646101.searchclickresult.12d592d72cdPEF
Ambari安装之安装并配置Ambari-server:https://yq.aliyun.com/articles/368496?spm=5176.10695662.1996646101.searchclickresult.12d592d72cdPEF
参考:https://yq.aliyun.com/articles/368491?spm=a2c4e.11153940.blogcont368496.26.557eabf4EGl7cT
Build and install Ambari 2.6.2
Step 1: Download and build Ambari 2.6.2 source
Go to http://www.apache.org/dyn/closer.cgi/ambari/ambari-2.6.2 and find the suggested mirror for download. The process to verify the download is described is at http://www.apache.org/dyn/closer.cgi#verify
1 |
|
Note: If running into errors while compiling the ambari-metrics package due to missing the artifacts of jms, jmxri, jmxtools:
[ERROR] Failed to execute goal on project ambari-metrics-kafka-sink: Could not resolve dependencies for project org.apache.ambari:ambari-metrics-kafka-sink:jar:2.2.2-0: The following artifacts could not be resolved: javax.jms:jms:jar:1.1, com.sun.jdmk:jmxtools:jar:1.2.1, com.sun.jmx:jmxri:jar:1.2.1: Could not transfer artifact javax.jms:jms:jar:1.1 from/to java.net (https://maven-repository.dev.java.net/nonav/repository): No connector available to access repository java.net (https://maven-repository.dev.java.net/nonav/repository) of type legacy using the available factories WagonRepositoryConnectorFactory
The work around is to manually install the three missing artifacts:
1 |
|
The three poms are:
1 |
|
1 |
|
1 |
|
RHEL (CentOS 6 or 7) & SUSE (SLES 11):
mvn -B clean install rpm:rpm -DnewVersion=2.6.2.0.0 -DbuildNumber=631319b00937a8d04667d93714241d2a0cb17275 -DskipTests -Dpython.ver="python >= 2.6"
Ubuntu/Debian:
mvn -B clean install jdeb:jdeb -DnewVersion=2.6.2.0.0 -DbuildNumber=631319b00937a8d04667d93714241d2a0cb17275 -DskipTests -Dpython.ver="python >= 2.6"
Note: You need to have tools such as rpm-build tool, brunch, etc. For details on prerequisites, please see Ambari Development.
Step 2: Install Ambari Server
Install the rpm package from ambari-server/target/rpm/ambari-server/RPMS/noarch/
[For CentOS 6 or 7]
yum install ambari-server*.rpm #This should also pull in postgres packages as well.
[For SLES 11]
zypper install ambari-server*.rpm #This should also pull in postgres packages as well.
[For Ubuntu/Debian]
apt-get install ./ambari-server*.deb #This should also pull in postgres packages as well.
Step 3: Setup and Start Ambari Server
Run the setup command to configure your Ambari Server, Database, JDK, LDAP, and other options:
ambari-server setup
Follow the on-screen instructions to proceed.
Once set up is done, start Ambari Server:
ambari-server start
Step 4: Install and Start Ambari Agent on All Hosts
Note: This step needs to be run on all hosts that will be managed by Ambari.
Copy the rpm package from ambari-agent/target/rpm/ambari-agent/RPMS/x8664/ and run:
_[For CentOS 6 or 7]
yum install ambari-agent*.rpm
[Ubuntu/Debian]
apt-get install ./ambari-agent*.deb
Edit /etc/ambari-agent/ambari.ini
1 |
|
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://
转载自:https://cwiki.apache.org/confluence/display/AMBARI/Installation+Guide+for+Ambari+2.6.2