Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: TiSpark报错

Clearly, TiCatalog has already been configured, but the error still occurs: TiSpark must work with TiCatalog. Please add TiCatalog in spark conf.
Here is the configuration in spark-defaults.conf:
spark.sql.extensions org.apache.spark.sql.TiExtensions
spark.tispark.pd.addresses 10.0.44.85:2379,10.0.44.86:2379,10.0.44.87:2379
spark.sql.catalog.tidb_catalog org.apache.spark.sql.catalyst.catalog.TiCatalog
spark.sql.catalog.tidb_catalog.pd.addresses 10.0.44.85:2379,10.0.44.86:2379,10.0.44.87:2379