Ambari安装(二)
一。首先确保服务启动了
[root@node1 ~]# netstat -tnpl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:8670 0.0.0.0:* LISTEN 1224/python
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 963/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1342/master
tcp6 0 0 :::9440 :::* LISTEN 1700/java
tcp6 0 0 :::9441 :::* LISTEN 1700/java
tcp6 0 0 :::9000 :::* LISTEN 1700/java
tcp6 0 0 :::3306 :::* LISTEN 1124/mysqld
tcp6 0 0 :::80 :::* LISTEN 974/httpd
tcp6 0 0 :::22 :::* LISTEN 963/sshd
tcp6 0 0 ::1:25 :::* LISTEN 1342/master
[root@node1 ~]# ambari-server staop
Using python /usr/bin/python
Usage: /usr/sbin/ambari-server
{start|stop|reset|restart|upgrade|status|upgradestack|setup|setup-jce|setup-ldap|sync-ldap|set-current|setup-security|refresh-stack-hash|backup|restore|update-host-names|check-database|enable-stack|setup-sso|setup-trusted-proxy|db-purge-history|install-mpack|uninstall-mpack|upgrade-mpack|setup-kerberos|setup-pam|migrate-ldap-pam} [options]
Use /usr/sbin/ambari-server.py –help to get details on options available.
Or, simply invoke ambari-server.py –help to print the options.
[root@node1 ~]# ambari-server restart
Using python /usr/bin/python
Restarting ambari-server
Waiting for server stop…
Ambari Server stopped
Ambari Server running with administrator privileges.
Organizing resource files at /var/lib/ambari-server/resources…
Ambari database consistency check started…
Server PID at: /var/run/ambari-server/ambari-server.pid
Server out at: /var/log/ambari-server/ambari-server.out
Server log at: /var/log/ambari-server/ambari-server.log
Waiting for server start…………………………………………………….
Server started listening on 8080
DB configs consistency check: no errors and warnings were found.
[root@node1 ~]#
二、开始安装配置
打开http://10.168.1.21:8080 创建集群,登录用户名和密码默认为admin admin
- 登录

- 创建
点击 Launch Install Wizard

- 配置集群名称

- 仓库位置
确保和配好的hdp.repo中保持一致
http://10.168.1.21/HDP/centos7/3.1.5.0-152/
http://10.168.1.21/HDP-GPL/centos7/3.1.5.0-152/
http://10.168.1.21/HDP-UTILS/centos7/1.1.0.22/

- 点击下一步,填写集群的主机名称及私钥
Node1
Node2
Node3
其中下面的为node1主机的ssh私钥(~/.ssh/id_rsa)
注意:1. 确保master和slave之间能 ssh通
2在复制的时候不能有换行符,否则会出现不能识别主机名称的错误

- 注册
注册+ host确认

- 安装服务选择

- 服务节点设置

- 配置信息确认


- 安装完毕确认

- 安装完毕,进入Dashboard
