'How to get a instance of a table in iceberg by spark3.2

iceberg version: iceberg-spark-3.2_2.12

the demo code:

Catalog catalog = new HiveCatalog(spark.sparkContext().hadoopConfiguration());

usually works, now get an error: The constructor HiveCatalog(Configuration) is undefined



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source