kevinjqliu commented on issue #1952: URL: https://github.com/apache/iceberg-python/issues/1952#issuecomment-2849293475
Hi @HyunWooZZ thanks for raising this issue! I want to summary my understanding > I had a problem writing an Iceberg table to GCS via the JDBC catalog, but I solved it. Looking at the screenshot. It looks like you're running `create_table` with a GCS table location. On table creation, the metadata json file write failed with `FileExistsError`. > The error log said that the file already existed in the bucket — but there was actually nothing there. So, I printed the object to find out what type it was, and it turned out to be a directory. do you know how this directory was created? Seems like this might be the real problem. GCS created a directory named `gs://.../....metadata.json` and this conflicts with the metadata json write above. > How did I solve the problem? I just set my environment variable like below: export GOOGLE_APPLICATION_CREDENTIALS="" this implies that there was a permission issue. And additional credential resolved it. when you created the catalog, did you provide gcs credentials like so https://py.iceberg.apache.org/configuration/#google-cloud-storage -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org