kerberos安装
1.server端
# yum install -y krb5-server krb5-libs krb5-auth-dialog
client端
# yum install -y krb5-workstation krb5-libs krb5-auth-dialog
各机器上均虚安装openssl
# yum install krb5-pkinit-openssl
//修改/etc/krb5.conf
vim /etc/krb5.conf
[logging]
default = FILE:/var/log/krb5libs.log
kdc = FILE:/var/log/krb5kdc.log
admin_server = FILE:/var/log/kadmind.log
[libdefaults]
default_realm = HADOOP.COM
dns_lookup_kdc = false
dns_lookup_realm = false
clockskew = 120
ticket_lifetime = 86400
renew_lifetime = 604800
forwardable = true
renewable = true
[realms]
HADOOP.COM = {
kdc = cdh02.hadoop.com
admin_server = cdh02.hadoop.com
}
[domain_realm]
.hadoop.com = HADOOP.COM
hadoop.com = HADOOP.COM
[kdc]
profile=/var/kerberos/krb5kdc/kdc.conf
//修改/var/kerberos/krb5kdc/kdc.conf
vim /var/kerberos/krb5kdc/kdc.conf
[root@master ~]# cat /var/kerberos/krb5kdc/kdc.conf
[kdcdefaults]
kdc_ports = 88
kdc_tcp_ports = 88
[realms]
HADOOP.COM = {
master_key_type = aes256-cts
max_life = 25h
max_renewable_life = 4w
acl_file = /var/kerberos/krb5kdc/kadm5.acl
dict_file = /usr/share/dict/words
admin_keytab = /var/kerberos/krb5kdc/kadm5.keytab
supported_enctypes = aes256-cts:normal aes128-cts:normal des3-hmac-sha1:normal arcfour-hmac:normal des-hmac-sha1:normal des-cbc-md5:normal des-cbc-crc:normal
max_life = 24h
max_renewable_life = 10d
#default_principal_flags = +renewable, +forwardable
}
拷贝krb5.conf到集群中其他机器上
修改kadm5.acl
创建krb数据库
kdb5_util create -r HADOOP.COM -s
//启动kdc服务器
/sbin/service krb5kdc start
/sbin/service kadmin start
chkconfig --level 35 krb5kdc on
chkconfig --level 35 kadmin on
创建管理员用户 cloudera/admin 123456
cm里点击主机 重新运行安装向导 升级java包
整理的升级指的是启用java里的jce功能,jce是负责安全模块,去网上下载jce自行安装也是可以的。