jneira-stratio commented on issue #7847:
URL: https://github.com/apache/iceberg/issues/7847#issuecomment-2247095786

   Hi, a little bit late to the party but i am getting a working spark session 
using a hive catalog with
   
   ```
   docker compose exec -it spark-iceberg spark-sql \
     --conf spark.sql.defaultCatalog=spark_catalog \
     --conf 
spark.sql.catalog.spark_catalog=org.apache.iceberg.spark.SparkSessionCatalog \
     --conf spark.sql.catalog.spark_catalog.type=hive \
     --conf spark.sql.catalog.spark_catalog.warehouse=/home/iceberg/warehouse \
     --conf spark.sql.catalogImplementation=hive \
     --conf 
spark.hadoop.javax.jdo.option.ConnectionURL=jdbc:postgresql://postgres:5432/metastore
 \
     --conf 
spark.hadoop.javax.jdo.option.ConnectionDriverName=org.postgresql.Driver \
     --conf spark.hadoop.javax.jdo.option.ConnectionUserName=admin \
     --conf spark.hadoop.javax.jdo.option.ConnectionPassword=password \
     --conf spark.hadoop.datanucleus.schema.autoCreateAll=true \
     --conf spark.hadoop.hive.metastore.schema.verification=false
   ```
   
   you will need a local postgres, like the set up in 
https://github.com/tabular-io/docker-spark-iceberg/blob/a662f9d733a714d6d99b4bf7a823805431ddf456/docker-compose.yml#L15
 and add portges jdbc driver jar to spark classpath (see 
https://github.com/tabular-io/docker-spark-iceberg/blob/a662f9d733a714d6d99b4bf7a823805431ddf456/spark/Dockerfile#L45-L47
 for example)


-- 
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: issues-unsubscr...@iceberg.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to