ambari安裝注意事項

官方教程:https://docs.hortonworks.com/HDPDocuments/Ambari-2.5.1.0/bk_ambari-installation/content/setting_up_a_local_repository_with_no_internet_access.htmlhtml

1,用root操做;mysql

設置ip:
vi /etc/network/interface
static
address 192.168.199.210
netmask 255.255.255.0
geteway 192.168.199.1
dns-nameservers 114.114.114.114
網卡重啓
sudo ifdown eth0 && sudo ifup eth0
root密碼初始化
sudo passwd root
root ssh啓用 
sudo vi /etc/ssh/sshd_config

PermitRootLogin -> yes 屬性值修改成yes
#AuthorizedKeysFile      %h/.ssh/authorized_keys 啓用刪除#

主機名,host映射修改
vim /etc/hostname  
vim /etc/hosts
xinju.master
xinju.slave1
xinju.slave2
或者用命令
hostname xxxx

修改hostname,重啓生效
時間同步:
sudo apt-get install ntp -y 
root@com:~# systemctl restart ntp
免密登陸
ssh-keygen -t rsa
ssh-copy-id -i ~/.ssh/id_rsa.pub root@com.mt.master
ssh-copy-id -i ~/.ssh/id_rsa.pub root@com.mt.slave001
ssh-copy-id -i ~/.ssh/id_rsa.pub root@com.mt.slave002

本地數據庫安裝:
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION;
flush privileges;
外網綁定:
/etc/mysql/my.cnf
關閉防火牆
ufw disable
sudo iptables -X
sudo iptables -t nat -F
sudo iptables -t nat -X
sudo iptables -t mangle -F
sudo iptables -t mangle -X
sudo iptables -P INPUT ACCEPT
sudo iptables -P FORWARD ACCEPT
sudo iptables -P OUTPUT ACCEPT

ulimit -n 10000

selinux關閉
apt install selinux-utils -y 
setenforce 0

umask
umask 0022
echo umask 0022 >> /etc/profile

禁用大內存頁面 
echo never > /sys/kernel/mm/transparent_hugepage/enabled

2,添加源ambari源linux

wget -O /etc/apt/sources.list.d/ambari.list http://public-repo-1.hortonworks.com/ambari/ubuntu14/2.x/updates/2.5.1.0/ambari.list
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com B9733A7A07513CAD
apt-get update
apt-get install ambari-server -y

 

安裝sql

apt-get install install ambari-server && ambari-server setup && ambari-server start數據庫

若是機子內存小,cpu慢,修改安裝超時時間:apache

vim /etc/ambari-server/conf/ambari.propertiesubuntu

agent.package.install.task.timeout=1800
改成2700

過程截圖:vim

1,check warning必須所有處理:服務器

選主從:ssh

ambari從本地數據源下載太慢,則必須作本地倉庫:

https://docs.hortonworks.com/,ambari,根據版本找

下載本地數據

https://docs.hortonworks.com/HDPDocuments/Ambari-2.5.1.0/bk_ambari-installation/content/ambari_repositories.html

異常記錄:

1,節點cpu和內存不能過小,不然會發生cpu或者內存吃光的現象,致使相互沒法通信:

2,配置hive數據庫,jdbc地址,3306默認沒有配置,要本身加!

血的教訓

 

阿里雲服務器bug也是多:

1,買服務器的時候,選中三臺slave,下訂單點兩下結果出來6臺,(⊙﹏⊙)b,

2,100m最大帶寬,給我幹到150m,有圖爲證:

 

安裝成功:

8088

相關文章
相關標籤/搜索