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.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.8.0, 3.0.0-alpha2
    • None

    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

              weichiu Wei-Chiu Chuang
              weichiu Wei-Chiu Chuang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: