Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 1.08 KB

iceberg-start.md

File metadata and controls

21 lines (16 loc) · 1.08 KB

Apache Iceberg Quickstart

If just looking to get started just evaluating Apache Iceberg, follow the directions in the code snippet below:

# RUN THIS COMMAND TO START DOCKER CONTAINER
docker run -it --name spark34 alexmerced/spark34

# Once Container is Running, this will start spark-sql with a catalog called "my_iceberg_catalog"
spark-sql --packages org.apache.iceberg:iceberg-spark-runtime-3.4_2.13:1.3.1 \
--conf spark.sql.catalog.my_iceberg_catalog=org.apache.iceberg.spark.SparkCatalog \
--conf spark.sql.catalog.my_iceberg_catalog.type=hadoop \
--conf spark.sql.catalog.my_iceberg_catalog.warehouse=$PWD/warehouse

# Run this query
CREATE TABLE my_iceberg_catalog.names (name STRING) USING iceberg;

Here are some other tutorials for getting hands on building Apache Iceberg lakehouses: