AngersZhuuuu commented on a change in pull request #26594: 
[SPARK-29957][TEST][test-java11][test-hadoop3.2] Reset MiniKDC's default 
enctypes to fit jdk8/jdk11
URL: https://github.com/apache/spark/pull/26594#discussion_r352062274
 
 

 ##########
 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:
   > Hardcoding such things makes me worry, is it possible to ask whether it's 
supported or not?
   
   https://github.com/apache/spark/pull/26594#discussion_r350549930
   
   Checked that `aes128-cts-hmac-sha1-96` is supported in jdk8 & jdk11.
   Root cause is if we don't config this, jdk11's client will use `buildin` 
enctype of jdk11

----------------------------------------------------------------
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