Skip to content

Commit

Permalink
Update medium-stats-spark-driver.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pavan-kumar-99 authored Jun 10, 2024
1 parent fd08c77 commit 7526e63
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/medium/medium-stats-spark-driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def process_data(bucket_name, bucket_prefix, local_path):
catalog_name = "glue_catalog"
iceberg_bucket_name = bucket_name
iceberg_bucket_prefix = bucket_prefix
warehouse_path = f"s3://{iceberg_bucket_name}/{iceberg_bucket_prefix}"
warehouse_path = f"s3a://{iceberg_bucket_name}/{iceberg_bucket_prefix}"
mongodb_uri = os.getenv("MONGO_URI")

if not mongodb_uri:
Expand All @@ -82,6 +82,10 @@ def process_data(bucket_name, bucket_prefix, local_path):
f"spark.sql.catalog.{catalog_name}.s3.endpoint",
"http://minio-server.minio:9000",
)
.config(
f"spark.sql.catalog.{catalog_name}.s3a.endpoint",
"http://minio-server.minio:9000",
)
.config(
f"spark.sql.catalog.{catalog_name}.io-impl",
"org.apache.iceberg.aws.s3.S3FileIO",
Expand Down

0 comments on commit 7526e63

Please sign in to comment.