Sneha-Verma commented on issue #14628:
URL: https://github.com/apache/iceberg/issues/14628#issuecomment-3562711792
@nastra
The File exists in storage, and we were able to bypass the error by editing
the metadata.json file to correct the location of the snapshot Avro file—adding
the bucket name
(**gs://gcs_bucket/**Src_iceberg/metadata/snap-5796920053859768560-1-a4d44074-db69-41c3-8e50-6201c3c75dfd.avro).
However, this file references another Avro file
(Src_iceberg/metadata/9d4e2d83-ed11-48bf-9a79-f4060583eac8-m0.avro), which in
turn points to the Parquet files. We are unable to edit this snapshot Avro
file. It appears the issue is caused by referencing a partial path.
Error Stack:
org.apache.iceberg.exceptions.NotFoundException: Failed to open input stream
for file: Src_iceberg/metadata/9d4e2d83-ed11-48bf-9a79-f4060583eac8-m0.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)
... 16 elided
Caused by: java.io.FileNotFoundException: File
Src_iceberg/metadata/9d4e2d83-ed11-48bf-9a79-f4060583eac8-m0.avro does not exist
at
org.apache.hadoop.fs.RawLocalFileSystem.deprecatedGetFileStatus(RawLocalFileSystem.java:779)
at
org.apache.hadoop.fs.RawLocalFileSystem.getFileLinkStatusInternal(RawLocalFileSystem.java:1100)
at
org.apache.hadoop.fs.RawLocalFileSystem.getFileStatus(RawLocalFileSystem.java:769)
at
org.apache.hadoop.fs.FilterFileSystem.getFileStatus(FilterFileSystem.java:462)
... 4 elided and 18 more
--
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]