Date: Tue, 19 Mar 2024 02:17:50 +0000 (UTC) Message-ID: <1413727150.54014.1710814670910@cwiki-he-fi.apache.org> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_54013_92735782.1710814670910" ------=_Part_54013_92735782.1710814670910 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Refer A= mbari Development for prerequisites and additional information on = how to build Apache Ambari.
Step 1: Download and= build Ambari 2.6.1 source
wget htt= p://archive.apache.org/dist/ambari/ambari-2.6.1/apache-ambari-2.6.1-src.tar= .gz tar xfvz apache-ambari-2.6.1-src.tar.gz cd apache-ambari-2.6.1-src mvn versions:set -DnewVersion=3D2.6.1.0.0 pushd ambari-metrics mvn versions:set -DnewVersion=3D2.6.1.0.0 popd
Note: If running into errors while compiling the ambari= -metrics package due to missing the artifacts of jms, jmxri, jmxtools:
[ERROR] Faile= d to execute goal on project ambari-metrics-kafka-sink: Could not resolve d= ependencies 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 tr= ansfer artifact javax.jms:jms:jar:1.1 from/to java.net (https://maven-repos= itory.dev.java.net/nonav/repository): No connector available to access repo= sitory java.net (https://maven-repository.dev.java.net/nonav/repository) of= type legacy using the available factories WagonRepositoryConnectorFactory =
The work around is to manually ins= tall the three missing artifacts:
mvn install:i= nstall-file -Dfile=3Djms-1.1.pom -DgroupId=3Djavax.jms -DartifactId=3Djms -= Dversion=3D1.1 -Dpackaging=3Djar mvn install:install-file -Dfile=3Djmxtools-1.2.1.pom -DgroupId=3Dcom.sun.jd= mk -DartifactId=3Djmxtools -Dversion=3D1.2.1 -Dpackaging=3Djar mvn install:install-file -Dfile=3Djmxri-1.2.1.pom -DgroupId=3Dcom.sun.jmx -= DartifactId=3Djmxri -Dversion=3D1.2.1 -Dpackaging=3Djar
The three poms are:
$ cat jms-1.1= .pom <project> <modelVersion>4.0.0</modelVersion> <groupId>javax.jms</groupId> <artifactId>jms</artifactId> <version>1.1</version> <name>Java Message Service</name> <description> The Java Message Service (JMS) API is a messaging standard that allows = application components based on the Java 2 Platform, Enterprise Edition (J2= EE) to create, send, receive, and read messages. It enables distributed com= munication that is loosely coupled, reliable, and asynchronous. </description> <url>http://java.sun.com/products/jms</url> <distributionManagement> <downloadUrl>http://java.sun.com/products/jms/docs.html</downl= oadUrl> </distributionManagement>
$ cat jmxri-1= .2.1.pom <?xml version=3D"1.0" encoding=3D"UTF-8"?><project> <modelVersion>4.0.0</modelVersion> <groupId>com.sun.jmx</groupId> <artifactId>jmxri</artifactId> <version>1.2.1</version> <distributionManagement> <status>deployed</status> </distributionManagement>
$ cat jmxtool= s-1.2.1.pom <?xml version=3D"1.0" encoding=3D"UTF-8"?><project> <modelVersion>4.0.0</modelVersion> <groupId>com.sun.jdmk</groupId> <artifactId>jmxtools</artifactId> <version>1.2.1</version> <distributionManagement> <status>deployed</status> </distributionManagement>
RHEL (CentOS 6 or 7) & SUSE (SLES 11):
mvn -B clean = install rpm:rpm -DnewVersion=3D2.6.1.0.0 -DbuildNumber=3D207a8e3c6b58feef25= cea171c9dd8cce276e02fa -DskipTests -Dpython.ver=3D"python >=3D 2.6"
Ubuntu/Debian:
mvn -B clean = install jdeb:jdeb -DnewVersion=3D2.6.1.0.0 -DbuildNumber=3D207a8e3c6b58feef= 25cea171c9dd8cce276e02fa -DskipTests -Dpython.ver=3D"python >=3D 2.6"
Note: You need to have tools such as rpm-build too= l, brunch, etc. For details on prerequisites, please see Ambari Development.<= /p>
Install the rpm package from ambari-server/target/rpm/ambari-server/RPMS= /noarch/
[For CentOS 6 or 7]
yum install a= mbari-server*.rpm #This should also pull in postgres packages = as well.
[For SLES 11]
zypper instal= l ambari-server*.rpm #This should also pull in postgres packag= es as well.
[For Ubuntu/Debian]
apt-get insta= ll ./ambari-server*.deb #This should also pull in postgres pack= ages as well.
Run the setup command to configure your Ambari Server, Database, JDK, LD= AP, and other options:
ambari-server= setup
Follow the on-screen instructions to proceed.
Once set up is done, start Ambari Server:
ambari-server= start
Note: This step needs to be run on all hosts that will be manage= d by Ambari.
Copy the rpm package from ambari-agent/target/rpm/ambari-agent/RPMS= /x86_64/ and run:
[For CentOS 6 or 7]
yum install a= mbari-agent*.rpm
[For SLES 11]
zypper instal= l ambari-agent*.rpm
[Ubuntu/Debian]
apt-get insta= ll ./ambari-agent*.deb
Edit /etc/ambari-agent/ambari.ini
... [server] hostname=3Dlocalhost ...
Make sure hostname under the [server] section points to the actual Ambar= i Server host, rather than "localhost".
ambari-agent = start
Open up a web browser and go to http://<ambari-server-host>:8080.<= /p>
Log in with username admin and password = admin and follow on-screen instructions. Secure your = environment by ensuring your administrator details are changed from the def= ault values as soon as possible.
Under Install Options page, enter the hosts to add to the cluster.  = ;Do not supply any SSH key, and check "Perform manual registration on hosts= and do not use SSH" and hit "Next".