Skip to content

Commit 7c90731

Browse files
Additional refs update for iceberg 1.9.0 (#1491)
* Additional refs update for iceberg 1.9.0 * Additional refs update for iceberg 1.9.0 * Additional refs update for iceberg 1.9.0
1 parent dac88d9 commit 7c90731

File tree

7 files changed

+14
-12
lines changed

7 files changed

+14
-12
lines changed

getting-started/eclipselink/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ services:
7373
retries: 15
7474
command: [
7575
/opt/spark/bin/spark-sql,
76-
--packages, "org.apache.iceberg:iceberg-spark-runtime-3.5_2.12:1.7.0,software.amazon.awssdk:bundle:2.28.17,software.amazon.awssdk:url-connection-client:2.28.17,org.apache.iceberg:iceberg-gcp-bundle:1.7.0,org.apache.iceberg:iceberg-azure-bundle:1.7.0",
76+
--packages, "org.apache.iceberg:iceberg-spark-runtime-3.5_2.12:1.9.0,software.amazon.awssdk:bundle:2.28.17,software.amazon.awssdk:url-connection-client:2.28.17,org.apache.iceberg:iceberg-gcp-bundle:1.9.0,org.apache.iceberg:iceberg-azure-bundle:1.9.0",
7777
--conf, "spark.sql.extensions=org.apache.iceberg.spark.extensions.IcebergSparkSessionExtensions",
7878
--conf, "spark.sql.catalog.quickstart_catalog=org.apache.iceberg.spark.SparkCatalog",
7979
--conf, "spark.sql.catalog.quickstart_catalog.type=rest",

getting-started/jdbc/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ services:
7373
retries: 15
7474
command: [
7575
/opt/spark/bin/spark-sql,
76-
--packages, "org.apache.iceberg:iceberg-spark-runtime-3.5_2.12:1.7.0,software.amazon.awssdk:bundle:2.28.17,software.amazon.awssdk:url-connection-client:2.28.17,org.apache.iceberg:iceberg-gcp-bundle:1.7.0,org.apache.iceberg:iceberg-azure-bundle:1.7.0",
76+
--packages, "org.apache.iceberg:iceberg-spark-runtime-3.5_2.12:1.9.0,software.amazon.awssdk:bundle:2.28.17,software.amazon.awssdk:url-connection-client:2.28.17,org.apache.iceberg:iceberg-gcp-bundle:1.9.0,org.apache.iceberg:iceberg-azure-bundle:1.9.0",
7777
--conf, "spark.sql.extensions=org.apache.iceberg.spark.extensions.IcebergSparkSessionExtensions",
7878
--conf, "spark.sql.catalog.polaris=org.apache.iceberg.spark.SparkCatalog",
7979
--conf, "spark.sql.catalog.polaris.type=rest",

getting-started/spark/notebooks/SparkPolaris.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@
256256
"\n",
257257
"spark = (SparkSession.builder\n",
258258
" .config(\"spark.sql.catalog.spark_catalog\", \"org.apache.iceberg.spark.SparkSessionCatalog\")\n",
259-
" .config(\"spark.jars.packages\", \"org.apache.iceberg:iceberg-spark-runtime-3.5_2.12:1.8.1,org.apache.hadoop:hadoop-aws:3.4.0,software.amazon.awssdk:bundle:2.23.19,software.amazon.awssdk:url-connection-client:2.23.19\")\n",
259+
" .config(\"spark.jars.packages\", \"org.apache.iceberg:iceberg-spark-runtime-3.5_2.12:1.9.0,org.apache.hadoop:hadoop-aws:3.4.0,software.amazon.awssdk:bundle:2.23.19,software.amazon.awssdk:url-connection-client:2.23.19\")\n",
260260
" .config('spark.sql.iceberg.vectorization.enabled', 'false')\n",
261261
" \n",
262262
" # Configure the 'polaris' catalog as an Iceberg rest catalog\n",

plugins/pluginlibs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#
1919

2020
[versions]
21-
iceberg = "1.8.1"
21+
iceberg = "1.9.0"
2222
spark35 = "3.5.5"
2323
scala212 = "2.12.19"
2424
scala213 = "2.13.15"

plugins/spark/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
to you under the Apache License, Version 2.0 (the
77
"License"); you may not use this file except in compliance
88
with the License. You may obtain a copy of the License at
9-
9+
1010
http://www.apache.org/licenses/LICENSE-2.0
11-
11+
1212
Unless required by applicable law or agreed to in writing,
1313
software distributed under the License is distributed on an
1414
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -20,13 +20,13 @@
2020
# Polaris Spark Plugin
2121

2222
The Polaris Spark plugin provides a SparkCatalog class, which communicates with the Polaris
23-
REST endpoints, and provides implementations for Apache Spark's
24-
[TableCatalog](https://github.com/apache/spark/blob/v3.5.5/sql/catalyst/src/main/java/org/apache/spark/sql/connector/catalog/TableCatalog.java),
25-
[SupportsNamespaces](https://github.com/apache/spark/blob/v3.5.5/sql/catalyst/src/main/java/org/apache/spark/sql/connector/catalog/SupportsNamespaces.java),
23+
REST endpoints, and provides implementations for Apache Spark's
24+
[TableCatalog](https://github.com/apache/spark/blob/v3.5.5/sql/catalyst/src/main/java/org/apache/spark/sql/connector/catalog/TableCatalog.java),
25+
[SupportsNamespaces](https://github.com/apache/spark/blob/v3.5.5/sql/catalyst/src/main/java/org/apache/spark/sql/connector/catalog/SupportsNamespaces.java),
2626
[ViewCatalog](https://github.com/apache/spark/blob/v3.5.5/sql/catalyst/src/main/java/org/apache/spark/sql/connector/catalog/ViewCatalog.java) classes.
2727

2828
Right now, the plugin only provides support for Spark 3.5, Scala version 2.12 and 2.13,
29-
and depends on iceberg-spark-runtime 1.8.1.
29+
and depends on iceberg-spark-runtime 1.9.0.
3030

3131
# Build Plugin Jar
3232
A task createPolarisSparkJar is added to build a jar for the Polaris Spark plugin, the jar is named as:
@@ -87,7 +87,7 @@ bin/spark-shell \
8787
```
8888

8989
# Limitations
90-
The Polaris Spark client supports catalog management for both Iceberg and Delta tables, it routes all Iceberg table
90+
The Polaris Spark client supports catalog management for both Iceberg and Delta tables, it routes all Iceberg table
9191
requests to the Iceberg REST endpoints, and routes all Delta table requests to the Generic Table REST endpoints.
9292

9393
The Spark Client requires at least delta 3.2.1 to work with Delta tables, which requires at least Apache Spark 3.5.3.

plugins/spark/v3.5/spark/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,11 @@ tasks.register<ShadowJar>("createPolarisSparkJar") {
167167
minimize {
168168
exclude(dependency("org.apache.iceberg:iceberg-spark-runtime-*.*"))
169169
exclude(dependency("org.apache.iceberg:iceberg-core*.*"))
170+
exclude(dependency("org.apache.avro:avro*.*"))
170171
}
171172

172173
relocate("com.fasterxml", "org.apache.polaris.shaded.com.fasterxml.jackson")
174+
relocate("org.apache.avro", "org.apache.polaris.shaded.org.apache.avro")
173175
}
174176

175177
tasks.withType(Jar::class).named("sourcesJar") { dependsOn("createPolarisSparkJar") }

site/content/in-dev/unreleased/getting-started/using-polaris.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ _Note: the credentials provided here are those for our principal, not the root c
147147

148148
```shell
149149
bin/spark-sql \
150-
--packages org.apache.iceberg:iceberg-spark-runtime-3.5_2.12:1.7.1,org.apache.hadoop:hadoop-aws:3.4.0 \
150+
--packages org.apache.iceberg:iceberg-spark-runtime-3.5_2.12:1.9.0,org.apache.hadoop:hadoop-aws:3.4.0 \
151151
--conf spark.sql.extensions=org.apache.iceberg.spark.extensions.IcebergSparkSessionExtensions \
152152
--conf spark.sql.catalog.quickstart_catalog.warehouse=quickstart_catalog \
153153
--conf spark.sql.catalog.quickstart_catalog.header.X-Iceberg-Access-Delegation=vended-credentials \

0 commit comments

Comments
 (0)