241600489 opened a new issue, #6725:
URL: https://github.com/apache/gravitino/issues/6725

   In the **createGravitinoClient** method within the 
**GravitinoDriverPlugin.java** class 
**(gravitino/spark-connector/spark-common/src/main/java/org/apache/gravitino/spark/connector/plugin/GravitinoDriverPlugin.java**),
 there is a check for Kerberos configuration when the **authType** is set to 
**simple**. Specifically, the code includes the following logic:
   `if (AuthProperties.isSimple(authType)) {
       Preconditions.checkArgument(
           !UserGroupInformation.isSecurityEnabled(),
           "Spark simple auth mode doesn't support setting kerberos 
configurations");
       builder.withSimpleAuth(sparkUser);
   }`
   My question is: Why is there a need to check for Kerberos configuration in 
the environment when the authType is simple?
   
   It seems that the presence of Kerberos configuration might be related to 
connecting to Hadoop (e.g., for HDFS or other Hadoop services) rather than 
connecting to Gravitino itself. If the authType is simple, shouldn't the 
Kerberos configuration be irrelevant to the Gravitino client initialization?
   
   Could you clarify the reasoning behind this check? Is it to ensure 
compatibility with Spark's authentication model, or is there another specific 
requirement that necessitates this validation?


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to