damccorm opened a new issue, #20591:
URL: https://github.com/apache/beam/issues/20591

   Current(as of Beam SDK 2.24.0) Java Dataflow workers does not ship with 
[Hadoop native 
library](https://hadoop.apache.org/docs/r2.8.5/hadoop-project-dist/hadoop-common/NativeLibraries.html)
 and popular native compression codecs(e.g libsnappy) .
   
   If one try to read files using IO classes that assume native library 
support(e.g, org.apache.hadoop.hbase.mapreduce.TableSnapshotInputFormat) on GCP 
Dataflow, the following error will be throw if the file is compressed by snappy:
   
    
   
   ```
   
   
   java.io.IOException: Failed to start reading from source: 
org.apache.beam.sdk.io.hadoop.format.HadoopFormatIO$HadoopInputFor
   
   matBoundedSource@311fa603
   
   ...
   
   Caused by: org.apache.hadoop.hbase.DoNotRetryIOException: 
java.lang.RuntimeException:
   native snappy library not available: this version of libhadoop was built 
without snappy support.
     
   
   ```
   
   
   There is very little one can do from within pipeline job code unless 
rewriting the IO class, so it might make sense to include these native 
libraries for Hadoop IOs
   
   Imported from Jira 
[BEAM-11231](https://issues.apache.org/jira/browse/BEAM-11231). Original Jira 
may contain additional context.
   Reported by: lobatt.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to