CrazyBeeline opened a new issue, #7664:
URL: https://github.com/apache/kyuubi/issues/7664

   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   
   
   ### Search before asking
   
   - [x] I have searched in the 
[issues](https://github.com/apache/kyuubi/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Describe the bug
   
   1. kerberos enabled (hive spark hadoop kyuubi)
   2. set 
spark.sql.catalog.hivex=org.apache.kyuubi.spark.connector.hive.HiveTableCatalog;
   use hivex;
   create table test_bb (id int); 
   drop table test_bb;
   ok
   3.set 
spark.sql.catalog.hivex2=org.apache.kyuubi.spark.connector.hive.HiveTableCatalog;
   set 
spark.sql.catalog.hivex2.hive.metastore.uris=thrift://hadoopoe24x8602.qsdi.bigdata:19083;
 
   use hivex2;
   create table test_bb (id int); 
   error find 
   
   
   
   javax.security.sasl.SaslException: GSS initiate failed [Caused by 
GSSException: No valid credentials provided (Mechanism level: Failed to find 
any Kerberos tgt)]
        at 
com.sun.security.sasl.gsskerb.GssKrb5Client.evaluateChallenge(GssKrb5Client.java:211)
        at 
org.apache.thrift.transport.TSaslClientTransport.handleSaslStartMessage(TSaslClientTransport.java:95)
        at 
org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:271)
        at 
org.apache.thrift.transport.TSaslClientTransport.open(TSaslClientTransport.java:38)
        at 
org.apache.hadoop.hive.thrift.client.TUGIAssumingTransport$1.run(TUGIAssumingTransport.java:52)
        at 
org.apache.hadoop.hive.thrift.client.TUGIAssumingTransport$1.run(TUGIAssumingTransport.java:49)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:422)
        at 
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1899)
        at 
org.apache.hadoop.hive.thrift.client.TUGIAssumingTransport.open(TUGIAssumingTransport.java:49)
        at 
org.apache.hadoop.hive.metastore.HiveMetaStoreClient.open(HiveMetaStoreClient.java:478)
        at 
org.apache.hadoop.hive.metastore.HiveMetaStoreClient.<init>(HiveMetaStoreClient.java:245)
   
   4. code check 
   org.apache.kyuubi.spark.connector.hive.HiveTableCatalog.82
   
     private lazy val hadoopConf: Configuration = {
       val conf = sparkSession.sessionState.newHadoopConf()
       catalogOptions.asScala.foreach { case (k, v) => conf.set(k, v) }
       if (catalogOptions.containsKey("hive.metastore.uris")) {
         conf.set("hive.metastore.token.signature", 
metastoreTokenSignature(catalogOptions))
       }
       conf
     }
   
   
   ### Affects Version(s)
   
   1.10
   
   ### Kyuubi Server Log Output
   
   ```logtalk
   
   ```
   
   ### Kyuubi Engine Log Output
   
   ```logtalk
   
   ```
   
   ### Kyuubi Server Configurations
   
   ```yaml
   
   ```
   
   ### Kyuubi Engine Configurations
   
   ```yaml
   
   ```
   
   ### Additional context
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes. I would be willing to submit a PR with guidance from the Kyuubi 
community to fix.
   - [ ] No. I cannot submit a PR at this time.


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


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

Reply via email to