关于Ambari的安全、访问控制在这里有非常详细的介绍。
http://pivotalhd.docs.pivotal.io/docs/security-guide-ambari-2.1.2.html
另外还可以参考这一篇
Ambari用来管理大数据集群非常的方便,但是默认只支持HTTP协议,需要手动安装、配置才能支持HTTPS协议。
步骤如下:
1、登陆到Ambari Server所在主机,依次执行如下命令
1)
openssl genrsa -out $wserver.key 2048
2)
openssl req -new -key $wserver.key -out $wserver.csr
3)
openssl x509 -req -days 365 -in $wserver.csr -signkey $wserver.key -out $wserver.crt
注:$wserver 就是Ambari Server 的host name
The certificate you use must be PEM-encoded, not DER-encoded. If you attempt to use a DER-encoded certificate, you see the following error:
unable to load certificate 140109766494024:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c :698:Expecting: TRUSTED CERTIFICATE
You can convert a DER-encoded certificate to a PEM-encoded certificate using the following command:
openssl x509 -in cert.crt -inform der -outform pem -out cert.pem
where cert.crt is the DER-encoded certificate and cert.pem is the resulting PEM-encoded certificate.
2、执行 ambari-server setup-security命令
Select 1 for Enable HTTPS for Ambari server.
Respond y to Do you want to configure HTTPS ?
Select the port you want to use for SSL. The default port number is 8443.
Provide the complete path to your certificate file ($wserver.crt from above) and private key file ($wserver.key from above).
Provide the password for the private key.
Start or restart the Server
ambari-server restart
本文详细介绍如何为Ambari Server启用HTTPS,包括生成自签名证书的步骤,并通过ambari-serversetup-security命令配置HTTPS,确保大数据集群管理的安全。
739

被折叠的 条评论
为什么被折叠?



