...
- Disable IPv6, leaving it enabled may force service to bind to IPv6 addresses only and thus resulting in inability to connect to it ([source link](https://wiki.centos.org/FAQ/CentOS6#head-d47139912868bcb9d754441ecb6a8a10d41781df)):Disable for the running system:
Code Block |
---|
sysctl -w net.ipv6.conf.all.disable_ipv6=1 sysctl -w net.ipv6.conf.default.disable_ipv6=1 echo -e "\n# Disable IPv6\nnet.ipv6.conf.all.disable_ipv6 = 1\nnet.ipv6.conf.default.disable_ipv6 = 1" >> /etc/sysctl.conf |
Disable Transparent Hugepage. Add "transparent_hugepage=never" to the end of the kernel line in "/etc/default/grub" and reboot. (Ambari demands it, do we need to comply?)Code Block # Change the line: GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=cl/root rd.lvm.lv=cl/swap rhgb quiet" # To: GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=cl/root rd.lvm.lv=cl/swap rhgb quiet transparent_hugepage=never" # Afterwards, run: grub2-mkconfig -o /boot/grub2/grub.cfg
...
Also on your build box, install npm. This is needed to build metron-config, part of the UI.
Code Block yum install npm -y
- Add "127.0.0.1 localhost" to /etc/hosts if it does not already therethere already
Install the database we will use for Metron REST:
Code Block yum install mariadb-server mysql-connector-java -y
...
If you're doing a multi node install, also copy the packages to the other nodes:
Code Block ssh root@node2 mkdir /localrepo scp /localrepo/*\.rpm root@node2:/localrepo/. ssh root@node2 createrepo /localrepo
...
Ambari 2.4 with HDP 2.5 install
Inspired by: [httphttps://docs.hortonworks.com/HDPDocuments/Ambari-2.4.13.0/bk_ambari-installation/content/ch_Getting_Ready.html]
Enable time sync, disable firewall and SElinux on every node:
Code Block systemctl enable ntpd systemctl start ntpd systemctl stop firewalld systemctl disable firewalld setenforce 0 (=> I know, but for the sake of simplicity, quickness & testing, I've disabled selinux.)
...
On main node download and setup Ambari repo (you may replace the "2.4.2.0" with a newer Ambari version number):
Code Block wget -nv http://public-repo-1.hortonworks.com/ambari/centos6centos7/2.x/updates/2.4.23.0/ambari.repo -O /etc/yum.repos.d/ambari.repo yum update -y
Check that it was added:
Code Block
...
yum repolist | grep ambari
...
# Updates-ambari-2.4.
...
3.
...
0 ambari-2.4.
...
3.0 -
...
Updates 12
Install and setup Ambari server:
Code Block
...
yum install ambari-server -y
...
ambari-server setup -s
...
Add Metron service to Ambari by running mpack command (make sure to specify correct path to mpack in --mpack=):
Code Block
...
ambari-server install-mpack --mpack=/root/metron/metron-deployment/packaging/ambari/metron-mpack/target/metron_mpack-0.4.0.0.tar.gz --verbose
Start Ambari:
Code Block
...
ambari-server start
- Access the Ambari UI by going to the following URL in a web browser:
http://<replace_with_master_node_ip>:8080/
. You can use admin/admin as username/password. Start the Install Wizard.
...