wangyum commented on a change in pull request #26594: [SPARK-29957][TEST] Bump 
MiniKdc to 3.2.0
URL: https://github.com/apache/spark/pull/26594#discussion_r350561381
 
 

 ##########
 File path: 
external/kafka-0-10-sql/src/test/scala/org/apache/spark/sql/kafka010/KafkaTestUtils.scala
 ##########
 @@ -136,6 +137,20 @@ class KafkaTestUtils(
     kdcConf.setProperty(MiniKdc.DEBUG, "true")
     kdc = new MiniKdc(kdcConf, kdcDir)
     kdc.start()
+    val krb5Conf = Source.fromFile(kdc.getKrb5conf, "UTF-8").getLines()
+    val rewriteKrb5Conf = krb5Conf.map(s => if (s.contains("libdefaults")) {
+      s + "\n" +
+        "    default_tkt_enctypes=aes128-cts-hmac-sha1-96\n" +
+        "    default_tgs_enctypes=aes128-cts-hmac-sha1-96 "
 
 Review comment:
   Maybe we should first customize `krb5.conf` to test Kafka delegation token: 
https://issues.apache.org/jira/browse/SPARK-30037 @gaborgsomogyi 
   Add then add these two configurations to `krb5.conf`.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to