Drop Hadoop 2 input stream reflection from parquet-hadoop
- 主要言語
- Java
- スター
- 3.1k
- フォーク
- 1.6k
- 平均マージ
- 3日 12時間
- マージ済み PR(30日)
- 33
説明
Parquet uses reflection to load a hadoop2 input stream, falling back to a hadoop-1 compatible client if not found.
All hadoop 2.0.2+ releases work with H2SeekableInputStream, so the binding to H2SeekableInputStream reworked to avoid needing reflection. This would make it a lot easier to probe for/use the bytebuffer input, and line the code up for more recent hadoop releases.
H1SeekableInputStream is still needed to handle streams without ByteBufferReadable.
At some poiint support for ByteBufferPositionedReadable is needed, because that is really what parquet wants. that's where reflection will be needed
**Reporter**: [Steve Loughran](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=stevel@apache.org) / @steveloughran
#### Related issues:
- [Incorrect type checking in HadoopStreams.wrap](https://github.com/apache/parquet-java/issues/2673) (is related to)
**Note**: *This issue was originally created as [PARQUET-2151](https://issues.apache.org/jira/browse/PARQUET-2151). Please see the [migration documentation](https://issues.apache.org/jira/browse/PARQUET-2502) for further details.*
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
parquet-hadoop のストリーム読み込みコードから始め、関連する HadoopStreams.wrap issue をコンテキストとして使用しながら、H2SeekableInputStream と H1SeekableInputStream を調査してください。Hadoop 2.0.2+ のストリームが現在どのように読み込まれているかを確認してください。完了の条件は、H2 binding が reflection を必要としなくなり、ByteBufferReadable を持たないストリームでは H1 が引き続き利用可能であることです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- hadoop, java
- 領域
- data-engineering
- issue の種類
- リファクタリング
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 30/100