Skip to content

Connect to S3 catalog #1683

@IanVlasov

Description

@IanVlasov

Question

Hello!
I am rather new in using Iceberg, could you help me with the following question.

I have a catalog stored on S3 with the metadata stored nearby, the structure is simple:

.
└── iceberg/
    └── table_name/
        ├── data/
        │   └── *.parquet
        └── metadata/
            └── *.avro

I can successfully connect to it using Spark with the following parameters:

.config("spark.sql.catalog.spark_catalog", "org.apache.iceberg.spark.SparkSessionCatalog")
.config("spark.sql.defaultCatalog", "iceberg")
.config("spark.sql.catalog.iceberg", "org.apache.iceberg.spark.SparkCatalog")
.config("spark.sql.catalog.iceberg.warehouse", "s3a://bucket_name/iceberg")
.config("spark.sql.catalog.iceberg.type", "hadoop")
.config("spark.sql.extensions", "org.apache.iceberg.spark.extensions.IcebergSparkSessionExtensions")

But PyIceberg insists on providing URI for metastore which I don't know where to find.
Is there any way to define a configuration that will work in this case?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions