Parquet Writer doesn't support to write list of Groups directly into hadoop
- 主要言語
- Java
- スター
- 3.1k
- フォーク
- 1.6k
- 平均マージ
- 3日 12時間
- マージ済み PR(30日)
- 33
説明
**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**
```java
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**
```java
ParquetWriter 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
**Reporter**: [Udit Joshi](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=udit0612)
#### Original Issue Attachments:
- [image-2019-05-31-10-41-45-674.png](https://issues.apache.org/jira/secure/attachment/12970426/image-2019-05-31-10-41-45-674.png)
**Note**: *This issue was originally created as [PARQUET-1587](https://issues.apache.org/jira/browse/PARQUET-1587). Please see the [migration documentation](https://issues.apache.org/jira/browse/PARQUET-2502) for further details.*
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
まず、parquet-hadoop 1.10.1 API の ParquetWriter、ParquetFileWriter、ExampleParquetWriter、ParquetRecordWriter と、示されている ExampleParquetWriter の使用方法を確認します。GroupSupport が Hadoop の出力でどのように動作することを想定されているのか、またアクセスできないコンストラクターが必要な経路の一部なのかを判断します。Groups のリストを Hadoop Parquet ファイルに書き込むためのサポートされた方法が利用可能で、その方法が実証されていれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- data-engineering
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100