logo资料库

Ambari汉化及单点登录配置.doc

第1页 / 共4页
第2页 / 共4页
第3页 / 共4页
第4页 / 共4页
资料共4页,全文预览结束
Ambari汉化及单点登录配置
2.配置ambari ldap
4.配置ambari单点登录
Ambari 汉化及单点登录配置 Ambari 汉化及单点登录配置 一、准备如下 获取汉化编译后的包: ambari-web-publicw ambari-admin-web 1.汉化 汉化 ambari-web: 把 ambari-web-publicw 文件夹下的文件上传并覆盖到 ambari-server 所安装服务器的 /usr/lib/ambari-server/web/目录下。 scp -r ./* root@:/usr/lib/ambari-server/web/ 汉化 admin-web: 把 ambari-admin-web 文件夹下的文件上传并覆盖到 ambari-server 所安装服务器的 /var/lib/ambari-server/resources/views/work/ADMIN_VIEW{2.5.1.0}目录下。注意 {2.5.1.0}跟 ambari 版本有关。 scp -r ./* root@:/var/lib/ambari- server/resources/views/work/ADMIN_VIEW{2.5.1.0}/ 2.配置 ambari ldap 在 ambari-server 服务器 root 用户下执行如下命令: ambari-server setup-ldap 安装提示填写 ldap 的信息(主要是添加 Primary URL*、Base DN*、Manager DN*和密 码): Using python /usr/bin/python Setting up LDAP properties... Primary URL* {host:port} : 192.168.1.211:389 – openldap 的地址 Secondary URL {host:port} :
Use SSL* [true/false] (false): User object class* (posixAccount): User name attribute* (uid): Group object class* (posixGroup): Group name attribute* (cn): Group member attribute* (memberUid): Distinguished name attribute* (dn): Base DN* : dc=embracesource,dc=com Referral method [follow/ignore] : Bind anonymously* [true/false] (false): Handling behavior for username collisions [convert/skip] for LDAP sync* (convert): Manager DN* : cn=root,dc=embracesource,dc=com Enter Manager Password* : Re-enter password: ==================== Review Settings ==================== authentication.ldap.managerDn: cn=root,dc=embracesource,dc=com authentication.ldap.managerPassword: ***** Save settings [y/n] (y)? Saving...done Ambari Server 'setup-ldap' completed successfully. 3.配置 ldap 用户 配置平台用户复制的配置时使用的 UID 计数: 在 ou=People 添加 maxuid 用户,并设置 uidNumber/gidNumber 的值为 5000。homeDirectory 设置为/dev/null,loginShell 设置为/sbin/nologin。 添加 admin 用户和组(平台的超级管理员): 在 ou=People 添加一个 admin 用户,homeDirectory 设置为/dev/null, loginShell 设置为/sbin/nologin,并设置 uidNumber/gidNumber 的值为 4999。注意: admin 用户的密码设置为 plain text 格式,默认设置为 123456 在 ou=Group 添加一个分组 admin,注意 gidNumber 改为 4999,并且添加 memberUid 属性,值是 admin。
4.配置 ambari 单点登录 在 ambari-server 服务器上执行如下命令: ambari-server setup-sso 安装提示填写 sso 的信息(Provider URL 添加的是 embracebigdata 门户地址、Public Certificate pem 是 embracebigdata 的 cert.pem 文件): Using python /usr/bin/python Setting up SSO authentication properties... Do you want to configure SSO authentication [y/n] (y)? Provider URL [URL] (http://example.com):http://192.168.1.211:1180/embracebigdata/pages/index.html Public Certificate pem (empty) (empty line to finish input): MIICOTCCAaKgAwIBAgIIM/+8aoPCZ5wwDQYJKoZIhvcNAQEFBQAwXzELMAkGA1UE BhMCVVMxDTALBgNVBAgTBFRlc3QxDTALBgNVBAcTBFRlc3QxDzANBgNVBAoTBkhh ZG9vcDENMAsGA1UECxMEVGVzdDESMBAGA1UEAxMJbG9jYWxob3N0MB4XDTE3MDcw MzA3MTIxNFoXDTE4MDcwMzA3MTIxNFowXzELMAkGA1UEBhMCVVMxDTALBgNVBAgT BFRlc3QxDTALBgNVBAcTBFRlc3QxDzANBgNVBAoTBkhhZG9vcDENMAsGA1UECxME VGVzdDESMBAGA1UEAxMJbG9jYWxob3N0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCB iQKBgQCHeMNy2u/pn/j726w9AE5NnEh0xFrIIYLBo0EUzjlRN8g+yoZ/SDVBUEn9 QVWCRgTeocuveKc7/U/YroYhy3X1QCJufxmxO6L+8E4eQo8Bu7/AiStyruhp2Gsc 3ZG08LbLA0rd3qeJx5cQecw8MwtFh9XYjFbEgm1Z0UgqQju6RQIDAQABMA0GCSqG SIb3DQEBBQUAA4GBAAvdeEzlf9p0vlR3DpwKVNFOU/N3D0B4rqE2tB/9iucc6YWf LSfOg6DyuZzB0lir/D5isQ5YLy0m2sg+otsa5JiGg3ye8dpJE4TJJ4laf84/WBf+
9rGQ1Y0caj3nNHmIHpJk8CsPXpl+xwivOpLSBynhYGjEKmqy+Li3y+9CPfLM 此处:回车两次 Do you want to configure advanced properties [y/n] (n) ? Ambari Server 'setup-sso' completed successfully 做完上面步骤后,重启 ambari-server,然后执行从 ldap 同步用户信息。 ambari-server sync-ldap --all 输入 admin 和 ambari 之前登录的密码。假如密码报错,使用默认密码 123456(ldap admin 用户的密码)。如果还是有问题,多执行几次即可。
分享到:
收藏