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

Parquet Writer doesn't support to write list of Groups directly into hadoop

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Blocker
    • Resolution: Unresolved
    • 1.10.1
    • None
    • parquet-mr
    • None

    Description

      Problem :-  Parquet Writer doesn't support to write list of Groups directly into hadoop.

      Cause of Problem :- Suitable classes are not available
      Constructors are not visible

      All possible solution which i tried -

      • ParquetWriter
      • ParquetFileWriter
      • ExampleParquetWriter
      • ParquetRecordWriter

      Gradle dependency

      compile group: 'org.apache.parquet', name: 'parquet-hadoop', version: '1.10.1'

       

      Is there any way to writer parquet file into Hadoop with GroupSupport?

       

      Problem description

      I am trying to create the object of ParquetWriter class which accepts the argument (OutputFile, Mode, WriteSupport, CompressionCodecName, int, boolean, Configuration, int, ParquetProperties). But this constructor has default access modifier. I can't able to access it.

       I also used ParquetFileWriter class but it doesn't show any group support.

       

      ParquetWriter

       ParquetFileWriter

      ParquetFileWriter writer = new ParquetFileWriter(HadoopOutputFile.fromPath(writePathFile, configuration), schema, Mode.CREATE, DEFAULT_BLOCK_SIZE, MAX_PADDING_SIZE_DEFAULT) ;
       writer.start();

       

       It creates  to create parquet file in hadoop but can't facilitates to write  List of Groups in parquet file

       

      ExampleParquetWriter

      ParquetWriter<Group> writer = ExampleParquetWriter.builder(writePathFile).withConf(configuration).withType(getSchema()).build(); 
       System.out.println("Number of groups to write:" + groups.size());
       for (Group g : groups) {
       writer.write(g);
       } 

       Doesn't support for writing  parquet file in hadoop

       

       

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            udit0612 Udit Joshi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: