vinitamaloo-asu commented on issue #2442:
URL: https://github.com/apache/iceberg/issues/2442#issuecomment-1712329399

   I created a new catalog "iceberg_catalog" using spark config like below:
   `        .set("spark.sql.catalog.iceberg_catalog", 
"org.apache.iceberg.spark.SparkCatalog")
           .set("spark.sql.catalog.iceberg_catalog.type", "hive")`
   
   Now to create iceberg tables, I also initialized a hive catalog with the 
same catalog name and properties which is redundant.
   
   
   `    val catalog = new HiveCatalog()
       catalog.setConf(conf)
       catalog.initialize(
        "iceberg_catalog",
         JavaConverters.mapAsJavaMap(Map(
           CatalogProperties.CATALOG_IMPL -> 
"org.apache.iceberg.hive.HiveCatalog",
           CatalogProperties.URI -> "thrift://localhost:9083",
           CatalogProperties.WAREHOUSE_LOCATION -> warehouseUri
         ))`
   
   
   Is there a way to get the previously initialized catalog with spark conf?
   


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