Uploaded image for project: 'Parquet'
  1. Parquet
  2. PARQUET-2065

parquet-cli not working in release 1.12.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.12.0
    • None
    • parquet-cli
    • None

    Description

      When I run parquet-cli getting  java.lang.NoSuchMethodError

      Steps to repdouce:

      1. Download parquet-mr 1.12.0 from https://github.com/apache/parquet-mr/archive/refs/tags/apache-parquet-1.12.0.tar.gz
      2. Build and install using mvn clean install
      3. cd parquet-cli
      4. mvn dependency:copy-dependencies
      5. java -cp 'target/:target/dependency/' org.apache.parquet.cli.Main head <parquet file>
      6. Got below exception

      WARNING: An illegal reflective access operation has occurred
      WARNING: Illegal reflective access by org.apache.hadoop.security.authentication.util.KerberosUtil (file:/home/amsundar/hgroot/parquet-mr-apache-parquet-1.12.0/parquet-cli/target/dependency/hadoop-auth-2.10.1.jar) to method sun.security.krb5.Config.getInstance()
      WARNING: Please consider reporting this to the maintainers of org.apache.hadoop.security.authentication.util.KerberosUtil
      WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
      WARNING: All illegal access operations will be denied in a future release
      Exception in thread "main" java.lang.NoSuchMethodError: org.apache.parquet.avro.AvroSchemaConverter.convert(Lorg/apache/parquet/schema/MessageType;)Lorg/apache/avro/Schema;
      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:155)
      at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
      at org.apache.parquet.cli.Main.main(Main.java:185)

       

       

      Attachments

        1. sample.parquet
          21 kB
          Akshay Sundarraj
        2. sample.schema
          4 kB
          Akshay Sundarraj

        Activity

          People

            Unassigned Unassigned
            akshaysu Akshay Sundarraj
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: