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

 ##########
 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")) {
 
 Review comment:
   Just to get to the same page based on what do you say this? Please point to 
the doc of this statement.
   
   My findings:
   * This description is coming from the `krb5.conf` file format:
   ```
   The krb5.conf file may contain the following sections:
   
   [libdefaults] | Settings used by the Kerberos V5 library
   ...
   ```
   
   * In `MiniKdc` until now haven't seen any guarantee that it will contain 
such section.
   

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