how to use hadoop and kafka keytab in same spark submit command?

拈花ヽ惹草 提交于 2020-03-21 07:15:26

问题


We have secure hadoop server and We are running spark streaming job to consume from secure kafka topic. For authentication, I am passing hadoop keytab and its principal to spark-submit command along Kafka keytab but the job is failing .

If we remove --keytab and --principal from the command and try authenticating hadoop keytab using KINIT before running spark command - its working perfectly fine.

spark2-submit --keytab Hadoop.keytab -- principal abc@adlov.org --file kafka.keytab 

My requirement is to autheticate the hadoop keytab while running the spark job i.e by passing hadoop keytab to spark job along with Kafka keytabs. Any idea, how we can achieve it.

来源:https://stackoverflow.com/questions/57409926/how-to-use-hadoop-and-kafka-keytab-in-same-spark-submit-command

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!