Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
カスタム入力クラスを使用せずに、Map Reduce アプリケーションへの入力ファイルとして snappy ファイルを使用できますか?
これに関する情報は見つかりませんでした。
よろしく、ニッシュ
はい、それは可能ですが、ファイルを使用するには最初にファイルを解凍する必要がある場合があります。
CompressionCodec codec = (CompressionCodec) ReflectionUtils.newInstance(SnappyCodec.class, new Configuration());
codec のインスタンスを作成したら、createInputStream を呼び出して Hadoop パスを渡します。codec.createInputStream