标签:dmi star manage 模式 table datanode .com alt ble
新扩容机器规划:
hostname | ip | 进程 |
slave3 | 10.183.225.167 | datanode,nodemange |
1. 修改/etc/hosts
增加新扩容机器的hostname
10.183.225.167 slave3
2. 将/etc/hosts同步到其他服务器
scp /etc/hosts slave3:/etc/
3. 将hadoop拷贝至slave3
scp -r /xxx/soft/hadoop-2.7.3 slave3:/xxx/soft/
4. 将jsvc拷贝至slave3(安全模式datanode需要通过jsvc启动)
scp -r /letv/soft/commons-daemon-1.0.15-src slave3:/letv/soft/
5. kadmin添加pricipal
kadmin.local addpric -randkey root/slave3@JENKIN.COM addpric -randkey host/slave3@JENKIN.COM xst -norandkey -k /var/kerberos/krb5kdc/keytab/root.keytab root/slave3@JENKIN.COM host/slave3@JENKIN.COM
6. 测试principal
kinit -k -t /var/kerberos/krb5kdc/keytab/root.keytab root/slave3@JENKIN.COM
7. 将keytab同步其他服务器
scp /var/kerberos/krb5kdc/keytab/root.keytab slave3:/var/kerberos/krb5kdc/keytab/ scp /var/kerberos/krb5kdc/keytab/root.keytab master2:/var/kerberos/krb5kdc/keytab/ scp /var/kerberos/krb5kdc/keytab/root.keytab slave2:/var/kerberos/krb5kdc/keytab/
8. 启动datanode
./sbin/start-secure-dns.sh
9. 启动nodemanage
./sbin/yarn-daemon.sh start nodemanager
标签:dmi star manage 模式 table datanode .com alt ble
原文地址:http://www.cnblogs.com/kisf/p/7492584.html