Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-13684

Snappy may complain Hadoop is built without snappy if libhadoop is not found.

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 3.0.0-alpha2
    • Component/s: None
    • Labels:

      Description

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

      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.");
            }
      

      This case may happen with MAPREDUCE-6577.

        Attachments

        1. HADOOP-13684.001.patch
          1 kB
          Wei-Chiu Chuang
        2. HADOOP-13684.002.patch
          2 kB
          Wei-Chiu Chuang

          Issue Links

            Activity

              People

              • Assignee:
                jojochuang Wei-Chiu Chuang
                Reporter:
                jojochuang Wei-Chiu Chuang
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: