You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@parquet.apache.org by "Timothy Miller (Jira)" <ji...@apache.org> on 2022/04/25 14:10:00 UTC

[jira] [Updated] (PARQUET-2143) parquet-cli with hadoop throws java.lang.RuntimeException on any parquet file access

     [ https://issues.apache.org/jira/browse/PARQUET-2143?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Miller updated PARQUET-2143:
------------------------------------
    Summary: parquet-cli with hadoop throws java.lang.RuntimeException on any parquet file access  (was: parquet-cli with hadoop throws java.lang.RuntimeException)

> parquet-cli with hadoop throws java.lang.RuntimeException on any parquet file access
> ------------------------------------------------------------------------------------
>
>                 Key: PARQUET-2143
>                 URL: https://issues.apache.org/jira/browse/PARQUET-2143
>             Project: Parquet
>          Issue Type: Bug
>          Components: parquet-cli
>    Affects Versions: 1.13.0
>         Environment: Amazon Linux 2, Java 8, Hadoop 3.2.3
>            Reporter: Timothy Miller
>            Priority: Blocker
>
> I can't do even basic things with parquet-cli from 1.13.0-SNAPSHOT.
> {noformat}
> git clone <parquet-mr repo> 
> cd parquet-mr
> mvn clean install -DskipTests
> cd parquet-cli
> mvn clean install -DskipTests
> cd target
> hadoop jar parquet-cli-1.13.0-SNAPSHOT-runtime.jar org.apache.parquet.cli.Main cat <parquet file>{noformat}
> Results:
> {noformat}
> Unknown error
> java.lang.RuntimeException: Failed on record 0
>     at org.apache.parquet.cli.commands.CatCommand.run(CatCommand.java:86)
>     at org.apache.parquet.cli.Main.run(Main.java:157)
>     at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
>     at org.apache.parquet.cli.Main.main(Main.java:187)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:498)
>     at org.apache.hadoop.util.RunJar.run(RunJar.java:323)
>     at org.apache.hadoop.util.RunJar.main(RunJar.java:236)
> Caused by: org.apache.parquet.io.ParquetDecodingException: Can not read value at 0 in block -1 in file file:/home/theosib/guid.parquet
>     at org.apache.parquet.hadoop.InternalParquetRecordReader.nextKeyValue(InternalParquetRecordReader.java:264)
>     at org.apache.parquet.hadoop.ParquetReader.read(ParquetReader.java:132)
>     at org.apache.parquet.hadoop.ParquetReader.read(ParquetReader.java:136)
>     at org.apache.parquet.cli.BaseCommand$1$1.advance(BaseCommand.java:363)
>     at org.apache.parquet.cli.BaseCommand$1$1.<init>(BaseCommand.java:344)
>     at org.apache.parquet.cli.BaseCommand$1.iterator(BaseCommand.java:342)
>     at org.apache.parquet.cli.commands.CatCommand.run(CatCommand.java:73)
>     ... 9 more
> Caused by: org.apache.parquet.io.ParquetDecodingException: The requested schema is not compatible with the file schema. incompatible types: required binary Number (STRING) != required fixed_len_byte_array(16) Number (UUID)
>     at org.apache.parquet.io.ColumnIOFactory$ColumnIOCreatorVisitor.incompatibleSchema(ColumnIOFactory.java:101)
>     at org.apache.parquet.io.ColumnIOFactory$ColumnIOCreatorVisitor.visit(ColumnIOFactory.java:93)
>     at org.apache.parquet.schema.PrimitiveType.accept(PrimitiveType.java:602)
>     at org.apache.parquet.io.ColumnIOFactory$ColumnIOCreatorVisitor.visitChildren(ColumnIOFactory.java:83)
>     at org.apache.parquet.io.ColumnIOFactory$ColumnIOCreatorVisitor.visit(ColumnIOFactory.java:57)
>     at org.apache.parquet.schema.MessageType.accept(MessageType.java:55)
>     at org.apache.parquet.io.ColumnIOFactory.getColumnIO(ColumnIOFactory.java:162)
>     at org.apache.parquet.hadoop.InternalParquetRecordReader.checkRead(InternalParquetRecordReader.java:140)
>     at org.apache.parquet.hadoop.InternalParquetRecordReader.nextKeyValue(InternalParquetRecordReader.java:230)
>     ... 15 more{noformat}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)