问题1

问题2

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
网友评论