You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
=== But got the below error, and already tried different verisons of iceberg-aws-bundle-<version>.jar and iceberg-spark-runtime-<SPARK_MAJOR_VERSION>_2.12-<ICEBERG_VERSION>.jar. but also get the same problem. is it FileIO did not implement in org.apache.iceberg.aws.s3.S3FileIO or org.apache.iceberg.io.FileIO ????
Caused by: java.lang.IllegalArgumentException: Cannot initialize FileIO, org.apache.iceberg.aws.s3.S3FileIO does not implement FileIO.
at org.apache.iceberg.CatalogUtil.loadFileIO(CatalogUtil.java:320)
at org.apache.iceberg.rest.RESTSessionCatalog.newFileIO(RESTSessionCatalog.java:827)
at org.apache.iceberg.rest.RESTSessionCatalog.initialize(RESTSessionCatalog.java:204)
at org.apache.iceberg.rest.RESTCatalog.initialize(RESTCatalog.java:72)
at org.apache.iceberg.CatalogUtil.loadCatalog(CatalogUtil.java:239)
at org.apache.iceberg.CatalogUtil.buildIcebergCatalog(CatalogUtil.java:284)
at org.apache.seatunnel.connectors.seatunnel.iceberg.IcebergCatalogLoader.loadCatalog(IcebergCatalogLoader.java:61)
at org.apache.seatunnel.connectors.seatunnel.iceberg.catalog.IcebergCatalog.open(IcebergCatalog.java:91)
at org.apache.seatunnel.api.sink.DefaultSaveModeHandler.open(DefaultSaveModeHandler.java:78)
at org.apache.seatunnel.engine.server.master.JobMaster.handleSaveMode(JobMaster.java:523)
... 21 more
Caused by: java.lang.ClassCastException: org.apache.iceberg.aws.s3.S3FileIO cannot be cast to org.apache.iceberg.io.FileIO
at org.apache.iceberg.CatalogUtil.loadFileIO(CatalogUtil.java:317)
... 30 more
I think it's related to classloader or classpath, Seems the org.apache.iceberg.aws.s3.S3FileIO And org.apache.iceberg.io.FileIO were loaded by the different classloader. Have you tried to use the Flink or Spark engine?
Search before asking
What happened
Iceberg sink Connector got error to spark-iceberg
Cannot initialize FileIO, org.apache.iceberg.aws.s3.S3FileIO does not implement FileIO
=== With below spark iceberg environment
spark iceberg environment from https://github.com/tabular-io/docker-spark-iceberg
ENV SPARK_VERSION=3.5.2
ENV SPARK_MAJOR_VERSION=3.5
ENV ICEBERG_VERSION=1.6.0
seatunnel environment build with below docker compose
image: apache/seatunnel:2.3.9
container_name: seatunnel-master
environment:
- TZ=Asia/Macau
- ST_DOCKER_MEMBER_LIST=172.19.0.11,172.19.0.12,172.19.0.13
entrypoint: >
/bin/sh -c "
/opt/seatunnel/bin/seatunnel-cluster.sh -r master -DJvmOption="-Xms2G -Xmx2G"
"
ports:
- "5701:5701"
volumes:
- ./config:/opt/seatunnel/config
networks:
integration:
ipv4_address: 172.19.0.11
(2 worker nodes are the same)
SeaTunnel Version
tried 2.3.8 and 2.3.9 docker images
SeaTunnel Config
Running Command
Error Exception
Zeta or Flink or Spark Version
ENV SPARK_VERSION=3.5.2
ENV SPARK_MAJOR_VERSION=3.5
ENV ICEBERG_VERSION=1.6.0
Java or Scala Version
No response
Screenshots
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: