kylo&kerberos相关
2018-09-04 本文已影响25人
夜空最亮的9星
问题1
image问题2
image
kadmin.local
添加用户
addprinc -randkey nifi@HYPERS.CC
导出keytab
xst -norandkey -k /etc/security/keytabs/nifi.headless.keytab nifi@HYPERS.CC
exit
chown nifi:hadoop /etc/security/keytabs/nifi.headless.keytab
chmod 440 /etc/security/keytabs/nifi.headless.keytab
Test that the keytab works. You can initialize your keytab file using below command.
su - nifi
kinit -kt /etc/security/keytabs/nifi.headless.keytab nifi
klist
hadoop fs -chown -R hive:supergroup /tmp
hdfs dfs -mkdir /archive /etl /model.db /app /app/warehouse
hadoop fs -setfacl -m user:nifi:rwx /archive
hadoop fs -setfacl -m user:nifi:rwx /etl
hadoop fs -setfacl -m user:nifi:rwx /model.db
hadoop fs -setfacl -m user:nifi:rwx /app/warehouse