I am trying to connect to Hive(hadoop cluster has kerberos authentication) from Spark which is Standalone.
Can someone let me know how to do kinit in spark program i could connect to hive?
UPDATE:My Spark is on different cluster from Hadoop
I am trying to connect to Hive(hadoop cluster has kerberos authentication) from Spark which is Standalone.
Can someone let me know how to do kinit in spark program i could connect to hive?
UPDATE:My Spark is on different cluster from Hadoop
Assuming you have a spark-shell open and you don't want to exit, and then re-kinit you could do something like this:
you should run the kinit command before init the spark-shell or submit a spark app (spark-submit). The other option is get the kerberos ticket using a keytab and run your spark program like this
regards,