[ 
https://issues.apache.org/jira/browse/HADOOP-10359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13948299#comment-13948299
 ] 

Ilya Maykov commented on HADOOP-10359:
--------------------------------------

[~hadoopqa] As far as I know, the build bot doesn't currently build native 
libraries on Mac OS X (if it builds anything on Mac OS X), so there are no 
automated tests that I could add to test this change.

Manual testing performed:

- built libhadoop.dylib on Mac OS X (requires this patch and the patch for 
HADOOP-9648)
- run "hadoop checknative" to verify that bzip2 compression is using the native 
code:

{{$ hadoop checknative
14/03/26 11:46:41 INFO bzip2.Bzip2Factory: Successfully loaded & initialized 
native-bzip2 library system-native
14/03/26 11:46:41 INFO zlib.ZlibFactory: Successfully loaded & initialized 
native-zlib library
14/03/26 11:46:41 INFO Configuration.deprecation: hadoop.native.lib is 
deprecated. Instead, use io.native.lib.available
Native library checking:
hadoop: true 
/Users/ilyam/repos/vendor/hadoop_distros/hadoop-2.2.0-cdh5.0.0-beta-2/lib/native/libhadoop.1.0.0.dylib
zlib:   true /usr/lib/libz.1.dylib
snappy: true /usr/local/lib/libsnappy.1.dylib
lz4:    true revision:99
bzip2:  true /usr/lib/libbz2.1.0.dylib}}

> Native bzip2 compression support is broken on non-Linux systems
> ---------------------------------------------------------------
>
>                 Key: HADOOP-10359
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10359
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: native
>    Affects Versions: 2.2.0
>         Environment: Mac OS X 10.8.5
> Oracle JDK 1.7.0_51
> Hadoop 2.2.0-CDH5.0.0-beta-2
>            Reporter: Ilya Maykov
>            Priority: Minor
>         Attachments: HADOOP-10359-native-bzip2-for-os-x.patch
>
>
> While testing the patch for HADOOP-9648, I noticed that the bzip2 native 
> compressor/decompressor support wasn't working properly. I dug around a bit 
> and got native bzip2 support to work on my macbook. Will attach a patch in a 
> bit. (This probably needs to be tested on FreeBSD / Windows / Linux, but I 
> don't have the time to set up the necessary VMs to do it. I assume the build 
> bot will test Linux).



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to