Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update iceberg package version for Spark 3.2.x #190

Merged
merged 2 commits into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions nds/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ Parquet, Orc, Avro, JSON and Iceberg are supported for output data format at pre
only Parquet and Orc are supported.

Note: when exporting data from CSV to Iceberg, user needs to set necessary configs for Iceberg in submit template.
e.g. [convert_submit_cpu_iceberg.template](./convert_submit_cpu_iceberg.template)
e.g. [convert_submit_cpu_iceberg.template](./convert_submit_cpu_iceberg.template).
To run iceberg against different Spark versions, please modify the Iceberg package version accordingly in the template file.

User can also specify `--tables` to convert specific table or tables. See argument details below.

Expand Down Expand Up @@ -405,7 +406,8 @@ update operations cannot be done atomically on raw Parquet/Orc files, so we use
[Iceberg](https://iceberg.apache.org/) as dataset metadata manager to overcome the issue.

Enabling Iceberg requires additional configuration. Please refer to [Iceberg Spark](https://iceberg.apache.org/docs/latest/getting-started/)
for details. We also provide a Spark submit template with necessary Iceberg configs: [maintenance_iceberg.template](./maintenance_iceberg.template)
for details. We also provide a Spark submit template with necessary Iceberg configs: [maintenance_iceberg.template](./maintenance_iceberg.template).
To run iceberg against different Spark versions, please modify the Iceberg package version accordingly in the template file.

The data maintenance queries are in [data_maintenance](./data_maintenance) folder. `DF_*.sql` are
DELETE queries while `LF_*.sql` are INSERT queries.
Expand Down
2 changes: 1 addition & 1 deletion nds/convert_submit_cpu_iceberg.template
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export SPARK_CONF=("--master" "${SPARK_MASTER}"
"--conf" "spark.executor.instances=${NUM_EXECUTORS}"
"--conf" "spark.executor.memory=${EXECUTOR_MEMORY}"
"--conf" "spark.sql.shuffle.partitions=${SHUFFLE_PARTITIONS}"
"--packages" "org.apache.iceberg:iceberg-spark-runtime-3.1_2.12:0.13.2"
"--packages" "org.apache.iceberg:iceberg-spark-runtime-3.2_2.12:0.13.2"
"--conf" "spark.sql.extensions=org.apache.iceberg.spark.extensions.IcebergSparkSessionExtensions"
"--conf" "spark.sql.catalog.spark_catalog=org.apache.iceberg.spark.SparkSessionCatalog"
"--conf" "spark.sql.catalog.spark_catalog.type=hadoop")
2 changes: 1 addition & 1 deletion nds/maintenance_iceberg.template
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export SPARK_CONF=("--master" "${SPARK_MASTER}"
"--conf" "spark.executor.instances=${NUM_EXECUTORS}"
"--conf" "spark.executor.memory=${EXECUTOR_MEMORY}"
"--conf" "spark.sql.shuffle.partitions=${SHUFFLE_PARTITIONS}"
"--packages" "org.apache.iceberg:iceberg-spark-runtime-3.1_2.12:0.13.2"
"--packages" "org.apache.iceberg:iceberg-spark-runtime-3.2_2.12:0.13.2"
"--conf" "spark.sql.extensions=org.apache.iceberg.spark.extensions.IcebergSparkSessionExtensions"
"--conf" "spark.sql.catalog.spark_catalog=org.apache.iceberg.spark.SparkSessionCatalog"
"--conf" "spark.sql.catalog.spark_catalog.type=hadoop"
Expand Down
2 changes: 1 addition & 1 deletion nds/power_run_cpu_iceberg.template
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export SPARK_CONF=("--master" "${SPARK_MASTER}"
"--conf" "spark.executor.instances=${NUM_EXECUTORS}"
"--conf" "spark.executor.memory=${EXECUTOR_MEMORY}"
"--conf" "spark.sql.shuffle.partitions=${SHUFFLE_PARTITIONS}"
"--packages" "org.apache.iceberg:iceberg-spark-runtime-3.1_2.12:0.13.2"
"--packages" "org.apache.iceberg:iceberg-spark-runtime-3.2_2.12:0.13.2"
"--conf" "spark.sql.extensions=org.apache.iceberg.spark.extensions.IcebergSparkSessionExtensions"
"--conf" "spark.sql.catalog.spark_catalog=org.apache.iceberg.spark.SparkSessionCatalog"
"--conf" "spark.sql.catalog.spark_catalog.type=hadoop"
Expand Down
2 changes: 1 addition & 1 deletion nds/power_run_gpu_iceberg.template
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export SPARK_CONF=("--master" "${SPARK_MASTER}"
"--conf" "spark.rapids.memory.host.spillStorageSize=32G"
"--conf" "spark.rapids.memory.pinnedPool.size=8g"
"--conf" "spark.rapids.sql.concurrentGpuTasks=${CONCURRENT_GPU_TASKS}"
"--packages" "org.apache.iceberg:iceberg-spark-runtime-3.1_2.12:0.13.2"
"--packages" "org.apache.iceberg:iceberg-spark-runtime-3.2_2.12:0.13.2"
"--conf" "spark.sql.extensions=org.apache.iceberg.spark.extensions.IcebergSparkSessionExtensions"
"--conf" "spark.sql.catalog.spark_catalog=org.apache.iceberg.spark.SparkSessionCatalog"
"--conf" "spark.sql.catalog.spark_catalog.type=hadoop"
Expand Down