In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces "the installation steps of ambari". In the daily operation, I believe many people have doubts about the installation steps of ambari. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "installation steps of ambari". Next, please follow the editor to study!
System requirements:
CentOS 7
Python 2.7.x
JDK1.8+
Installation environment preparation
HDP version compatibility
Https://supportmatrix.hortonworks.com/
Operation and maintenance knowledge base > ambari installation > image2018-9-29011-7-33.png
Because it is strictly dependent on the version, you need to determine which version is installed first.
System initialization
Modify hostname
Sudo hostnamectl set-hostname test-bg-xx
Sudo hostname test-bg-xx
Modify time zone and character set
# modify time zone:
Cp / usr/share/zoneinfo/Asia/Shanghai / etc/localtime
Synchronize cluster time
Yum install-y ntp
Ntpdate-u cn.pool.ntp.org
Or:
Ntpdate time1.aliyun.com
Hardware time and system time synchronization:
Clock-w
Configure automatic synchronization: / etc/crontab write
/ 1 * root ntpdate-u cn.pool.ntp.org > > / dev/null 2 > & 1
Turn off the firewall and selinux
# turn off the firewall
Systemctl stop firewalld
Systemctl disable firewalld
# turn off selinux
Modify configuration
Sed-I's setting SELINUXFORCING'/ etc/sysconfig/selinux
Temporarily Closed
Setenforce 0
Configure keyless login
In order for the Ambari server to automatically install the Ambari agent on all cluster hosts, you must set up a password-free SSH connection between the Ambari server host and all other hosts in the cluster. Ambari server hosts use SSH public key authentication to remotely access and install Ambari agents
Ssh-keygen-t rsa
Ssh-copy-id-I / .ssh/id_rsa.pub root@node1
Ssh-copy-id-I / .ssh/id_rsa.pub root@node2
Ssh-copy-id-I / .ssh/id_rsa.pub root@node3
Note: you can choose to install the Ambari agent manually on each cluster host. In this case, you do not need to generate and distribute SSH keys
A non-root SSH account can be used if the account can perform sudo without entering a password
#
# if the ssh port is not the default, you can create a config file under .ssh as follows
[jt_ops@test-bg-m01 .ssh] $cat config
Host test-bg-m01
HostName test-bg-m01
User jt_ops
Port 1876
Host test-bg-w01
HostName test-bg-w01
User jt_ops
Port 1876
System initialization parameters
Cat > > / etc/sysctl.conf > / etc/security/limits.conf / etc/security/limits.d/20-nproc.conf
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.