apache / apache/parquet-java

parquet-cli broken in master

Open
#2,657 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Component: CLI Component: Parquet Priority: Major Type: bug
Dominant language
Java
Stars
3.1k
Forks
1.6k
Avg merge
3d 12h
Merged PRs (30d)
33

Description

Creating a Jira per this thread:

1. clone parquet-mr and build the repo locally
1. run parquet-cli without Hadoop (according to this ReadMe <> )
1. try a command that deserializes data such as cat or head
1. observe NoSuchMethodError being thrown

**Error stack:** ~/repos/parquet-mr/parquet-cli$ parquet cat ../../testdata/dictionaryEncodingSample.parquet WARNING: An illegal reflective access operation has occurred ...... Exception in thread "main" java.lang.NoSuchMethodError: 'org.apache.avro.Schema org.apache.parquet.avro.AvroSchemaConverter.convert(org.apache.parquet.schema.MessageType)' at org.apache.parquet.cli.util.Schemas.fromParquet(Schemas.java:89) at org.apache.parquet.cli.BaseCommand.getAvroSchema(BaseCommand.java:405) at org.apache.parquet.cli.commands.CatCommand.run(CatCommand.java:66) 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)

**Environment**: ubuntu 18.04 and ubuntu 20.04
**Reporter**: [Balaji K](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=gamaken)

**Note**: *This issue was originally created as [PARQUET-2104](https://issues.apache.org/jira/browse/PARQUET-2104). Please see the [migration documentation](https://issues.apache.org/jira/browse/PARQUET-2502) for further details.*

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Build parquet-java locally, follow the parquet-cli README instructions for running without Hadoop, and reproduce the failure with a deserializing command such as cat or head. Inspect parquet-cli/util/Schemas.java at line 89 and the NoSuchMethodError involving AvroSchemaConverter; done means these commands run without that error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.