GitHub user shashihoushengqia closed a discussion: An error in the integration of Kyuubi, Gravitino, and Iceberg.
When I started Spark using kyuubi and then connected to it through DataGrip and DBeaver, I encountered an error. Error operating GetSchemas: java.lang.IllegalArgumentException: Doesn't support listing namespaces with db_dev at org.apache.gravitino.shaded.com.google.common.base.Preconditions.checkArgument(Preconditions.java:143) at org.apache.gravitino.spark.connector.catalog.BaseCatalog.listNamespaces(BaseCatalog.java:346) at org.apache.kyuubi.engine.spark.util.SparkCatalogUtils$.$anonfun$listAllNamespaces$1(SparkCatalogUtils.scala:113) at org.apache.kyuubi.engine.spark.util.SparkCatalogUtils$.$anonfun$listAllNamespaces$1$adapted(SparkCatalogUtils.scala:112) at scala.collection.TraversableLike.$anonfun$flatMap$1(TraversableLike.scala:293) at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36) at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33) at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:198) at scala.collection.TraversableLike.flatMap(TraversableLike.scala:293) at scala.collection.TraversableLike.flatMap$(TraversableLike.scala:290) at scala.collection.mutable.ArrayOps$ofRef.flatMap(ArrayOps.scala:198) at org.apache.kyuubi.engine.spark.util.SparkCatalogUtils$.listAllNamespaces(SparkCatalogUtils.scala:112) at org.apache.kyuubi.engine.spark.util.SparkCatalogUtils$.listAllNamespaces(SparkCatalogUtils.scala:129) at org.apache.kyuubi.engine.spark.util.SparkCatalogUtils$.getSchemasWithPattern(SparkCatalogUtils.scala:145) at org.apache.kyuubi.engine.spark.util.SparkCatalogUtils$.getSchemas(SparkCatalogUtils.scala:98) at org.apache.kyuubi.engine.spark.operation.GetSchemas.runInternal(GetSchemas.scala:43) at org.apache.kyuubi.operation.AbstractOperation.run(AbstractOperation.scala:185) at org.apache.kyuubi.session.AbstractSession.runOperation(AbstractSession.scala:104) at org.apache.kyuubi.engine.spark.session.SparkSessionImpl.runOperation(SparkSessionImpl.scala:109) at org.apache.kyuubi.session.AbstractSession.getSchemas(AbstractSession.scala:155) at org.apache.kyuubi.service.AbstractBackendService.getSchemas(AbstractBackendService.scala:83) at org.apache.kyuubi.service.TFrontendService.GetSchemas(TFrontendService.scala:307) at org.apache.kyuubi.shaded.hive.service.rpc.thrift.TCLIService$Processor$GetSchemas.getResult(TCLIService.java:1745) at org.apache.kyuubi.shaded.hive.service.rpc.thrift.TCLIService$Processor$GetSchemas.getResult(TCLIService.java:1725) at org.apache.kyuubi.shaded.thrift.ProcessFunction.process(ProcessFunction.java:38) at org.apache.kyuubi.shaded.thrift.TBaseProcessor.process(TBaseProcessor.java:38) at org.apache.kyuubi.service.authentication.TSetIpAddressProcessor.process(TSetIpAddressProcessor.scala:35) at org.apache.kyuubi.shaded.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:250) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829). This would cause both DataGrip and DBeaver to fail to display the database name of Iceberg properly. However, when I used SQL commands such as "show catalogs", "show databases", "show namespaces", and "show tables", everything worked normally and I was also able to query the data within the tables normally.I'm not sure whether this is a problem with gravitino or with kyuubi. <img width="3018" height="957" alt="image" src="https://github.com/user-attachments/assets/4192d40f-2a60-4e37-9f5b-ee733c266668" /> GitHub link: https://github.com/apache/gravitino/discussions/9819 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected]
