L

Wednesday, August 11th, 2021 1:16 PM

TO BE REVIEWED: DQ with DB2 and Kerberos and JAAS

Regarding using DQ with DB2 and Kerberos and JAAS, Brian Mearns shared this solution with us:

  1. Have the jaas-conf (for DB2 connection) and the TGT on the agent host.

  2. Add this to the agent freeform section

-file /path/to/tgt,/path/to/jaas-conf

  1. Along with

-conf “spark.driver.extraJavaOptions=-Djava.security.auth.login.config=jaas-conf”,“spark.executor.extraJavaOptions=-Djava.security.auth.login.config=jaas-conf”

  1. When JDBC fires, the DB2 driver should find the jaas-conf use that to find the TGT, and authenticate using Kerberos, assuming the krb5.conf is the same on agent and cluster.
No Responses!
Loading...