Sneha-Verma opened a new issue, #14628:
URL: https://github.com/apache/iceberg/issues/14628

   ### Apache Iceberg version
   
   1.6.1
   
   ### Query engine
   
   Spark
   
   ### Please describe the bug 🐞
   
   I am trying to read iceberg file from GCS bucket using spark engine, the 
read fails with org.apache.iceberg.exceptions.NotFoundException: Failed to open 
input stream for file: 
Src_iceberg/metadata/snap-5796920053859768560-1-a4d44074-db69-41c3-8e50-6201c3c75dfd.avro
 
   
   Environment- 
   Repository: apache/iceberg
   Spark: 3.5.1
   Scala: 2.12
   Iceberg version: 1.6.1
   GCS connector jar: 
https://repo1.maven.org/maven2/com/google/cloud/bigdataoss/gcs-connector/hadoop2-2.2.5/
   
   Language composition of repo: Java heavy (not strictly needed here)
   
   How to Reproduce :
   
   // Storage auth/config (GCS )
   spark.conf.set("fs.gs.impl", "<...>")
   spark.conf.set("fs.AbstractFileSystem.gs.impl", "<...>")
   spark.conf.set("fs.gs.project.id", "<...>")
   spark.conf.set("fs.gs.auth.type", "<...>")
   spark.conf.set("google.cloud.auth.service.account.enable", "<...>")
   spark.conf.set("google.cloud.auth.service.account.json.keyfile", "<...>")
   spark.conf.set("fs.gs.path.encoding", "<...>")
   
   / /Read Iceberg table
   val tablePath = "gs://gcs_bucket/Src_iceberg"
   val icebergDF = spark.read.format("iceberg") .load(tablePath)
   
   Stack Trace:
   org.apache.iceberg.exceptions.NotFoundException: Failed to open input stream 
for file: 
Src_iceberg/metadata/snap-5796920053859768560-1-a4d44074-db69-41c3-8e50-6201c3c75dfd.avro
   at 
org.apache.iceberg.hadoop.HadoopInputFile.newStream(HadoopInputFile.java:185)
   at org.apache.iceberg.avro.AvroIterable.newFileReader(AvroIterable.java:102)
   at org.apache.iceberg.avro.AvroIterable.iterator(AvroIterable.java:77)
   at org.apache.iceberg.avro.AvroIterable.iterator(AvroIterable.java:37)
   at 
org.apache.iceberg.relocated.com.google.common.collect.Iterables.addAll(Iterables.java:333)
   at 
org.apache.iceberg.relocated.com.google.common.collect.Lists.newLinkedList(Lists.java:242)
   at org.apache.iceberg.ManifestLists.read(ManifestLists.java:45)
   at org.apache.iceberg.BaseSnapshot.cacheManifests(BaseSnapshot.java:146)
   at org.apache.iceberg.BaseSnapshot.deleteManifests(BaseSnapshot.java:180)
   at 
org.apache.iceberg.BaseDistributedDataScan.findMatchingDeleteManifests(BaseDistributedDataScan.java:208)
   at 
org.apache.iceberg.BaseDistributedDataScan.doPlanFiles(BaseDistributedDataScan.java:149)
   at org.apache.iceberg.SnapshotScan.planFiles(SnapshotScan.java:139)
   at 
org.apache.iceberg.spark.source.SparkPartitioningAwareScan.tasks(SparkPartitioningAwareScan.java:174)
   at 
org.apache.iceberg.spark.source.SparkPartitioningAwareScan.taskGroups(SparkPartitioningAwareScan.java:202)
   
   ### Willingness to contribute
   
   - [ ] I can contribute a fix for this bug independently
   - [x] I would be willing to contribute a fix for this bug with guidance from 
the Iceberg community
   - [x] I cannot contribute a fix for this bug at this time


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to