Ambari集群安装
文章内容
目前的机器
172.22.222.109
安装ambari-server
在/etc/yum.repos.d/ambari.repo中新增ambari源
1 | cat /etc/yum.repos.d/ambari.repo |
执行安装命令
yum install install ambari-server
安装MariaDB 10.1
1 | cat /etc/yum.repos.d/Mariadb.repo |
部署的目录
/var/lib/ambari-server
web访问地址
配置文件的位置
/etc/ambari-server/conf
管理脚本
service ambari-server status
service ambari-server restart
service ambari-server stop
service ambari-server start
添加Client机器报SSL错误问题
编辑要增加的客户端机器/etc/ambari-agent/conf/ambari-agent.ini
在security标签增加
force_https_protocol=PROTOCOL_TLSv1_2
安装时报删除服务失败问题
查看/var/log/ambari-server/ambari-server.log日志报
Caught AmbariException when modifying a resource
org.apache.ambari.server.AmbariException: Could not delete cluster, clusterName=localvps
01 Apr 2020 12:26:06,836 WARN [ambari-client-thread-34] ServiceComponentImpl:492 - Found non removable hostcomponent when trying to delete service component, clusterName=localvps, serviceName=HIVE, componentName=MYSQL_SERVER, state=STARTED, hostname=localvps
01 Apr 2020 12:26:06,836 WARN [ambari-client-thread-34] ServiceImpl:509 - Found non removable component when trying to delete service, clusterName=localvps, serviceName=HIVE, componentName=MYSQL_SERVER
这个问题是由于安装hive时候选择New Database,之后又选择exist Database导致的,删除mysql数据库后重新安装MariaDB 10.1之后该问题消失