Spark Submit Command generator using Iceberg Catalog
Pick a catalog type (Hive, Hadoop, REST or JDBC) plus Spark, Iceberg and Scala versions, and get the spark-shell command with the right iceberg-spark-runtime coordinates and catalog configs. Every version pair comes from the Iceberg release's own build rather than a hand-kept table.
TL;DR
- Pick a Spark version and the tool offers only the Iceberg releases that actually support it, then only the Scala versions Iceberg publishes a runtime for.
- Spark 4.x is Scala 2.13 only, so no
_2.12Iceberg runtime exists for it. The tool will not let you build that coordinate.- It emits the
--packagescoordinate, theIcebergSparkSessionExtensionsconfig, and the catalog configs for Hive, Hadoop, REST or JDBC.SparkSessionCatalogis used for Hive so Iceberg and existing Hive tables coexist under the built-in namespark_catalog; every other type getsSparkCatalog.
Spark Submit Command generator using different Iceberg Catalog(s)
Choose the versions and a catalog type to get a spark-shell command. Add what
your environment needs on top of the Iceberg runtime: a JDBC driver jar for the
JDBC catalog, and a storage bundle such as iceberg-aws-bundle for s3://
warehouses if your platform does not provide one. The JDBC command reads the
password from the ICEBERG_CATALOG_PASSWORD environment variable.
References
- Iceberg Spark getting started for the runtime coordinate and session extensions
- Iceberg Spark configuration for catalog properties and the
SparkCatalogversusSparkSessionCatalogchoice
Found this useful?
These posts and tools are free. If one saved you an afternoon, you can buy me a coffee.
Comments
Questions, corrections and reviews are welcome. Sign in with GitHub to post; comments are stored in this site's public GitHub Discussions.