I have written a native hadoop compression codec. To let it work with hadoop I need to compile native (C code) it to libhadoop.so.
How can I achieve this?
You don't need to compile this into libhadoop.so:
System.loadLibrary("mylibrary");
(for a lib named libmylibrary.so).io.compression.codecs
configuration property):As a reference, you can follow the implementation and configuration notes for the Google Snappy codec: