Wondering if anyone has seen an error like below. I am writing a parquet file using a python script and the pyarrow lib to a NAS where I have dremio reading the file - at first Dremio has no issue reading the file … but once I update the file via the schedule python script … this error pops up:
Any ideas if there is a way to fix this ?
IOException: file:/data_store/customer_base.parquet is not a Parquet file. expected magic number at tail [80, 65, 82, 49] but found [24, 9, 54, 48]
SYSTEM ERROR: IOException: file:/data_store/customer_base.parquet is not a Parquet file. expected magic number at tail [80, 65, 82, 49] but found [24, 9, 54, 48] Fragment 0:0 [Error Id: 390917e6-d60d-4b0b-a749-7800db1d416f on 0148f7f101bb:31010] (java.lang.RuntimeException) Failed to read parquet footer for file file:/data_store/customer_base.parquet com.dremio.exec.store.parquet.SingletonParquetFooterCache.getFooter():55 com.dremio.exec.store.parquet.ParquetOperatorCreator$1.apply():120 com.dremio.exec.store.parquet.ParquetOperatorCreator$1.apply():99 com.google.common.collect.Iterators$7.transform():750 com.google.common.collect.TransformedIterator.next():47 com.dremio.sabot.op.scan.ScanOperator.<init>():142 com.dremio.exec.store.parquet.ParquetOperatorCreator.create():152 com.dremio.exec.store.parquet.ParquetOperatorCreator.create():57 com.dremio.sabot.driver.OperatorCreatorRegistry.getProducerOperator():94 com.dremio.sabot.driver.UserDelegatingOperatorCreator$4.run():89 com.dremio.sabot.driver.UserDelegatingOperatorCreator$4.run():86 java.security.AccessController.doPrivileged():-2 javax.security.auth.Subject.doAs():422 org.apache.hadoop.security.UserGroupInformation.doAs():1836 com.dremio.sabot.driver.UserDelegatingOperatorCreator.getProducerOperator():86 com.dremio.sabot.driver.PipelineCreator$CreatorVisitor.visitSubScan():210 com.dremio.sabot.driver.PipelineCreator$CreatorVisitor.visitSubScan():115 com.dremio.exec.physical.base.AbstractSubScan.accept():77 com.dremio.sabot.driver.PipelineCreator$CreatorVisitor.visitOp():247 com.dremio.sabot.driver.PipelineCreator$CreatorVisitor.visitOp():115 com.dremio.exec.physical.base.AbstractPhysicalVisitor.visitLimit():109 com.dremio.exec.physical.config.Limit.accept():55 com.dremio.sabot.driver.PipelineCreator$CreatorVisitor.visitOp():247 com.dremio.sabot.driver.PipelineCreator$CreatorVisitor.visitOp():115 com.dremio.exec.physical.base.AbstractPhysicalVisitor.visitProject():84 com.dremio.exec.physical.config.Project.accept():53 com.dremio.sabot.driver.PipelineCreator$CreatorVisitor.visitOp():247 com.dremio.sabot.driver.PipelineCreator$CreatorVisitor.visitOp():115 com.dremio.exec.physical.base.AbstractPhysicalVisitor.visitProject():84 com.dremio.exec.physical.config.Project.accept():53 com.dremio.sabot.driver.PipelineCreator$CreatorVisitor.visitOp():247 com.dremio.sabot.driver.PipelineCreator$CreatorVisitor.visitOp():115 com.dremio.exec.physical.base.AbstractPhysicalVisitor.visitWriter():69 com.dremio.exec.physical.base.AbstractWriter.accept():37 com.dremio.sabot.driver.PipelineCreator$CreatorVisitor.visitOp():247 com.dremio.sabot.driver.PipelineCreator$CreatorVisitor.visitOp():115 com.dremio.exec.physical.base.AbstractPhysicalVisitor.visitWriterCommiter():59 com.dremio.exec.physical.config.WriterCommitterPOP.accept():74 com.dremio.sabot.driver.PipelineCreator$CreatorVisitor.visitOp():247 com.dremio.sabot.driver.PipelineCreator$CreatorVisitor.visitOp():115 com.dremio.exec.physical.base.AbstractPhysicalVisitor.visitProject():84 com.dremio.exec.physical.config.Project.accept():53 com.dremio.sabot.driver.PipelineCreator$CreatorVisitor.visitScreen():234 com.dremio.sabot.driver.PipelineCreator$CreatorVisitor.visitScreen():115 com.dremio.exec.physical.config.Screen.accept():43 com.dremio.sabot.driver.PipelineCreator.get():107 com.dremio.sabot.driver.PipelineCreator.get():101 com.dremio.sabot.exec.fragment.FragmentExecutor.setupExecution():333 com.dremio.sabot.exec.fragment.FragmentExecutor.run():234 com.dremio.sabot.exec.fragment.FragmentExecutor.access$800():86 com.dremio.sabot.exec.fragment.FragmentExecutor$AsyncTaskImpl.run():591 com.dremio.sabot.task.AsyncTaskWrapper.run():107 com.dremio.sabot.task.slicing.SlicingThread.run():102 Caused By (java.io.IOException) file:/data_store/customer_base.parquet is not a Parquet file. expected magic number at tail [80, 65, 82, 49] but found [24, 9, 54, 48] com.dremio.exec.store.parquet.SingletonParquetFooterCache.checkMagicBytes():73 com.dremio.exec.store.parquet.SingletonParquetFooterCache.readFooter():114 com.dremio.exec.store.parquet.SingletonParquetFooterCache.readFooter():100 com.dremio.exec.store.parquet.SingletonParquetFooterCache.getFooter():53 com.dremio.exec.store.parquet.ParquetOperatorCreator$1.apply():120 com.dremio.exec.store.parquet.ParquetOperatorCreator$1.apply():99 com.google.common.collect.Iterators$7.transform():750 com.google.common.collect.TransformedIterator.next():47 com.dremio.sabot.op.scan.ScanOperator.<init>():142 com.dremio.exec.store.parquet.ParquetOperatorCreator.create():152 com.dremio.exec.store.parquet.ParquetOperatorCreator.create():57 com.dremio.sabot.driver.OperatorCreatorRegistry.getProducerOperator():94 com.dremio.sabot.driver.UserDelegatingOperatorCreator$4.run():89 com.dremio.sabot.driver.UserDelegatingOperatorCreator$4.run():86 java.security.AccessController.doPrivileged():-2 javax.security.auth.Subject.doAs():422 org.apache.hadoop.security.UserGroupInformation.doAs():1836 com.dremio.sabot.driver.UserDelegatingOperatorCreator.getProducerOperator():86 com.dremio.sabot.driver.PipelineCreator$CreatorVisitor.visitSubScan():210 com.dremio.sabot.driver.PipelineCreator$CreatorVisitor.visitSubScan():115 com.dremio.exec.physical.base.AbstractSubScan.accept():77 com.dremio.sabot.driver.PipelineCreator$CreatorVisitor.visitOp():247 com.dremio.sabot.driver.PipelineCreator$CreatorVisitor.visitOp():115 com.dremio.exec.physical.base.AbstractPhysicalVisitor.visitLimit():109 com.dremio.exec.physical.config.Limit.accept():55 com.dremio.sabot.driver.PipelineCreator$CreatorVisitor.visitOp():247 com.dremio.sabot.driver.PipelineCreator$CreatorVisitor.visitOp():115 com.dremio.exec.physical.base.AbstractPhysicalVisitor.visitProject():84 com.dremio.exec.physical.config.Project.accept():53 com.dremio.sabot.driver.PipelineCreator$CreatorVisitor.visitOp():247 com.dremio.sabot.driver.PipelineCreator$CreatorVisitor.visitOp():115 com.dremio.exec.physical.base.AbstractPhysicalVisitor.visitProject():84 com.dremio.exec.physical.config.Project.accept():53 com.dremio.sabot.driver.PipelineCreator$CreatorVisitor.visitOp():247 com.dremio.sabot.driver.PipelineCreator$CreatorVisitor.visitOp():115 com.dremio.exec.physical.base.AbstractPhysicalVisitor.visitWriter():69 com.dremio.exec.physical.base.AbstractWriter.accept():37 com.dremio.sabot.driver.PipelineCreator$CreatorVisitor.visitOp():247 com.dremio.sabot.driver.PipelineCreator$CreatorVisitor.visitOp():115 com.dremio.exec.physical.base.AbstractPhysicalVisitor.visitWriterCommiter():59 com.dremio.exec.physical.config.WriterCommitterPOP.accept():74 com.dremio.sabot.driver.PipelineCreator$CreatorVisitor.visitOp():247 com.dremio.sabot.driver.PipelineCreator$CreatorVisitor.visitOp():115 com.dremio.exec.physical.base.AbstractPhysicalVisitor.visitProject():84 com.dremio.exec.physical.config.Project.accept():53 com.dremio.sabot.driver.PipelineCreator$CreatorVisitor.visitScreen():234 com.dremio.sabot.driver.PipelineCreator$CreatorVisitor.visitScreen():115 com.dremio.exec.physical.config.Screen.accept():43 com.dremio.sabot.driver.PipelineCreator.get():107 com.dremio.sabot.driver.PipelineCreator.get():101 com.dremio.sabot.exec.fragment.FragmentExecutor.setupExecution():333 com.dremio.sabot.exec.fragment.FragmentExecutor.run():234 com.dremio.sabot.exec.fragment.FragmentExecutor.access$800():86 com.dremio.sabot.exec.fragment.FragmentExecutor$AsyncTaskImpl.run():591 com.dremio.sabot.task.AsyncTaskWrapper.run():107 com.dremio.sabot.task.slicing.SlicingThread.run():102