github-actions[bot] opened a new pull request, #6931:
URL: https://github.com/apache/gravitino/pull/6931

   ### What changes were proposed in this pull request?
   
   Fix use catalog and show  databases  failed with krb cluster for iceberg 
issue
   
   ### Why are the changes needed?
   
   Fix: #6871
   
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   ### How was this patch tested?
   local test.
   steps:
   1、curl -X POST -H "Accept: application/vnd.gravitino.v1+json"
   -H "Content-Type: application/json" -d '{
   "name": "iceberg_catalog",
   "type": "RELATIONAL",
   "comment": "iceberg catalog",
   "provider": "lakehouse-iceberg",
   "properties": {
   "catalog-backend": "hive",
   "warehouse": "/pathforhivetest",
   "uri": "thrift://HMS HOST:9083",
   "gravitino.bypass.hadoop.security.authentication": "kerberos",
   "gravitino.bypass.hive.metastore.sasl.enabled": "true",
   "gravitino.bypass.hive.metastore.kerberos.principal": "hive/HMS HOST@REALM",
   "authentication.kerberos.keytab-uri": "PATH OF KEYTAB",
   "authentication.kerberos.principal": "hive/HOST INSATANCE@REALM",
   "authentication.type": "kerberos",
   "authentication.impersonation-enable": true
   }
   }' http://localhost:8090/api/metalakes/dev_metalake/catalogs
   
   2、
   spark-sql -v --conf 
spark.plugins="org.apache.gravitino.spark.connector.plugin.GravitinoSparkPlugin"
 --conf spark.sql.gravitino.uri=http://localhost:8090/ --conf 
spark.sql.gravitino.metalake=dev_metalake --conf 
spark.sql.gravitino.enableIcebergSupport=true --conf 
spark.sql.warehouse.dir=xxxx --conf spark.sql.gravitino.authType=kerberos 
--conf 
spark.kerberos.principal=user1/[xxxxxx@MY.HADOOP--conf](mailto:xxxxxx@MY.HADOOP--conf)
 spark.kerberos.keytab=/user1.keytab
   
   3、use iceberg_catalog;show database
   
![image](https://github.com/user-attachments/assets/92b9a581-0cb2-45d3-b554-681adea9150f)
   
   


-- 
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: commits-unsubscr...@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to