You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Wei-Chiu Chuang (JIRA)" <ji...@apache.org> on 2016/10/04 20:54:20 UTC

[jira] [Created] (HADOOP-13684) Snappy may complain Hadoop is built without snappy if libhadoop is not found.

Wei-Chiu Chuang created HADOOP-13684:
----------------------------------------

             Summary: Snappy may complain Hadoop is built without snappy if libhadoop is not found.
                 Key: HADOOP-13684
                 URL: https://issues.apache.org/jira/browse/HADOOP-13684
             Project: Hadoop Common
          Issue Type: Improvement
            Reporter: Wei-Chiu Chuang
            Priority: Minor


If for some reason libhadoop can not be found/loaded, Snappy complains Hadoop is not built with Snappy but it actually is.

{code:title=SnappyCodec.java}
public static void checkNativeCodeLoaded() {
      if (!NativeCodeLoader.isNativeCodeLoaded() ||
          !NativeCodeLoader.buildSupportsSnappy()) {
        throw new RuntimeException("native snappy library not available: " +
            "this version of libhadoop was built without " +
            "snappy support.");
      }
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org