hive集成Kerberos

隶属于文章系列:大数据安全实战 https://www.jianshu.com/p/76627fd8399c


创建principle

kadmin.local -q "addprinc -randkey hive" ;
kadmin.local -q "ktadd -k /etc/hadoop/conf/hive-user.keytab  hive";

修改/etc/hive/conf/hive-site.xml,添加下面配置:



  hive.server2.authentication
  KERBEROS



  hive.server2.authentication.kerberos.principal
  hive/[email protected]



  hive.server2.authentication.kerberos.keytab
  /etc/hadoop/conf/hive-service.keytab



  hive.metastore.sasl.enabled
  true



  hive.metastore.kerberos.keytab.file
  /etc/hadoop/conf/hive-service.keytab



  hive.metastore.kerberos.principal
  hive/[email protected]

验证:

tail -f     /tmp/kduser/var/opt/apache-hive-2.3.2-bin/hivelog

你可能感兴趣的:(hive集成Kerberos)