3.将单前目录生成的Keytab拷贝到AmbariServer所在的集群。linux 网络状态命令确定该文件有合适的权限,能够被启动Ambari Server守护进程所访问。
# scp ambari.server.keytab hdp140:/etc/security/keytabs/ # ll /etc/security/keytabs/ambari.server.keytab -r--r----- 1 root root 530 Dec 18 20:06 /etc/security/keytabs/ambari.server.keytab
4.停止ambari server
# ambari-server stop
5.运行setup-security命令,设置JAAS。标红部分为需要设置部分。
A.选择3,Setup Ambari kerberos JAAS configuration
B.输入第一步为Ambari Server设置的principal名
C.输入Ambari principal的Keytab所在路径
# ambari-server setup-security Using python /usr/bin/python2 Security setup options... =========================================================================== Choose one of the following options: [1] Enable HTTPS for Ambari server. [2] Encrypt passwords stored in ambari.properties file. [3] Setup Ambari kerberos JAAS configuration. [4] Setup truststore. [5] Import certificate to truststore. =========================================================================== Enter choice, (1-5): 3 Setting up Ambari kerberos JAAS configuration to access secured Hadoop daemons... Enter ambari servers kerberos principal name (ambari@VRV.COM): ambari-server@VRV.COM Enter keytab path for ambari servers kerberos principal: /etc/security/keytabs/ambari.server.keytab Ambari Server setup-security completed successfully. 重启Ambari Server # ambari-server restart
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-66746-4.html
鹅肝
早晚会还给历史公正的评价的
他的意思他是有钱人