devyn commented on issue #14164:
URL: https://github.com/apache/iceberg/issues/14164#issuecomment-3348766473

   @hemanthboyina here's the stack trace from within Spark:
   
   ```
   Caused by: org.apache.iceberg.exceptions.RuntimeIOException: Failed to open 
file: 
s3://<...>/iceberg/test/data/25123a6e-63ce-43e7-bcb1-350514e1fe45/metadata/c434d175-933c-4c8a-9d9c-cde4dbc13a42-m0.avro
        at 
org.apache.iceberg.avro.AvroIterable.newFileReader(AvroIterable.java:104)
        at org.apache.iceberg.avro.AvroIterable.iterator(AvroIterable.java:77)
        at 
org.apache.iceberg.io.CloseableIterable$7$1.<init>(CloseableIterable.java:205)
        at 
org.apache.iceberg.io.CloseableIterable$7.iterator(CloseableIterable.java:204)
        at 
org.apache.iceberg.io.CloseableIterable$7$1.<init>(CloseableIterable.java:205)
        at 
org.apache.iceberg.io.CloseableIterable$7.iterator(CloseableIterable.java:204)
        at 
org.apache.iceberg.io.CloseableIterable.lambda$filter$0(CloseableIterable.java:126)
        at 
org.apache.iceberg.io.CloseableIterable$2.iterator(CloseableIterable.java:89)
        at 
org.apache.iceberg.io.CloseableIterable$7$1.<init>(CloseableIterable.java:205)
        at 
org.apache.iceberg.io.CloseableIterable$7.iterator(CloseableIterable.java:204)
        at org.apache.iceberg.ManifestReader.iterator(ManifestReader.java:321)
        at 
org.apache.iceberg.spark.actions.BaseSparkAction$ReadManifest.entries(BaseSparkAction.java:428)
        at 
org.apache.iceberg.spark.actions.BaseSparkAction$ReadManifest.call(BaseSparkAction.java:416)
        at 
org.apache.iceberg.spark.actions.BaseSparkAction$ReadManifest.call(BaseSparkAction.java:407)
        at org.apache.spark.sql.Dataset.$anonfun$flatMap$2(Dataset.scala:3496)
        at scala.collection.Iterator$$anon$10.nextCur(Iterator.scala:594)
        at scala.collection.Iterator$$anon$10.hasNext(Iterator.scala:608)
        at scala.collection.Iterator$$anon$9.hasNext(Iterator.scala:583)
        at scala.collection.Iterator$$anon$9.hasNext(Iterator.scala:583)
        at 
scala.collection.convert.JavaCollectionWrappers$IteratorWrapper.hasNext(JavaCollectionWrappers.scala:32)
        at 
org.apache.iceberg.relocated.com.google.common.collect.TransformedIterator.hasNext(TransformedIterator.java:45)
        at 
scala.collection.convert.JavaCollectionWrappers$JIteratorWrapper.hasNext(JavaCollectionWrappers.scala:41)
        at scala.collection.Iterator$$anon$9.hasNext(Iterator.scala:583)
        at 
org.apache.spark.sql.catalyst.expressions.GeneratedClass$GeneratedIteratorForCodegenStage4.processNext(Unknown
 Source)
        at 
org.apache.spark.sql.execution.BufferedRowIterator.hasNext(BufferedRowIterator.java:43)
        at 
org.apache.spark.sql.execution.WholeStageCodegenEvaluatorFactory$WholeStageCodegenPartitionEvaluator$$anon$1.hasNext(WholeStageCodegenEvaluatorFactory.scala:43)
        at 
org.apache.spark.sql.execution.SparkPlan.$anonfun$getByteArrayRdd$1(SparkPlan.scala:388)
        at 
org.apache.spark.rdd.RDD.$anonfun$mapPartitionsInternal$2(RDD.scala:890)
        at 
org.apache.spark.rdd.RDD.$anonfun$mapPartitionsInternal$2$adapted(RDD.scala:890)
        at 
org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:52)
        at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:364)
        at org.apache.spark.rdd.RDD.iterator(RDD.scala:328)
        at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:93)
        at 
org.apache.spark.TaskContext.runTaskWithListeners(TaskContext.scala:161)
        at org.apache.spark.scheduler.Task.run(Task.scala:141)
        at 
org.apache.spark.executor.Executor$TaskRunner.$anonfun$run$4(Executor.scala:620)
        at 
org.apache.spark.util.SparkErrorUtils.tryWithSafeFinally(SparkErrorUtils.scala:64)
        at 
org.apache.spark.util.SparkErrorUtils.tryWithSafeFinally$(SparkErrorUtils.scala:61)
        at org.apache.spark.util.Utils$.tryWithSafeFinally(Utils.scala:94)
        at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:623)
        ... 3 common frames omitted
   Caused by: org.apache.avro.InvalidAvroMagicException: Not an Avro data file
        at 
org.apache.avro.file.DataFileReader.openReader(DataFileReader.java:79)
        at 
org.apache.iceberg.avro.AvroIterable.newFileReader(AvroIterable.java:102)
        ... 42 common frames omitted
   ```


-- 
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