Skip to Main Content
Hadoop管理手冊
book

Hadoop管理手冊

by Eric Sammer
February 2014
Intermediate to advanced content levelIntermediate to advanced
312 pages
6h 28m
Chinese
GoTop Information, Inc.
Content preview from Hadoop管理手冊
Kerberos
Hadoop
|
153
hadoop05.mycompany.com
hadoop06.mycompany.com
hadoop07.mycompany.com
hadoop08.mycompany.com
hadoop09.mycompany.com
hadoop10.mycompany.com
使用上述主機列表作為輸入,我們可以撰寫一隻腳本程式來建立必要的
principal
,將
金鑰匯出到
keytabs
,並依照機器名稱封裝。
這個腳本程式
會重新產生所有現存相同名稱的金鑰,也就是會廢止所有現存的
keytab
或密碼。在執行會影響
KDC
的腳本前,請務必三思而後行!
#!/bin/sh
[ -r "hostnames.txt" ] || {
echo "File hostnames.txt doesn't exist or isn't readable."
exit 1
}
# Set this to the name of your Kerberos realm.
krb_realm=MYREALM.MYCOMPANY.COM
for name in $(cat hostnames.txt); do
install -o root -g root -m 0700 -d ${name}
kadmin.local <<EOF
addprinc -randkey host/${name}@${krb_realm}
addprinc -randkey ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

HBase管理指南

HBase管理指南

Posts & Telecom Press, Yifeng Jiang
Python应用开发指南

Python应用开发指南

Posts & Telecom Press, Ninad Sathaye
Python机器学习案例精解

Python机器学习案例精解

Posts & Telecom Press, Yuxi (Hayden) Liu
自然语言处理与计算语言学

自然语言处理与计算语言学

Posts & Telecom Press, Bhargav Srinivasa-Desikan

Publisher Resources

ISBN: 9789862769973