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

libhadoop.so: dlopen should be better at locating libsnappy.so, etc.

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-alpha
    • Fix Version/s: 2.0.3-alpha
    • Component/s: build
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      libhadoop calls dlopen to load libsnappy.so and libz.so. These libraries can be bundled in the $HADOOP_ROOT/lib/native directory. For example, the -Dbundle.snappy build option copies libsnappy.so to this directory. However, snappy can't be loaded from this directory unless LD_LIBRARY_PATH is set to include this directory.

      Can we make this configuration "just work" without needing to rely on LD_LIBRARY_PATH?

        Attachments

        1. HADOOP-8806.003.patch
          1 kB
          Colin McCabe
        2. rpathtest.tar.gz
          1 kB
          Andy Isaacson
        3. rpathtest2.tar.gz
          9 kB
          Colin McCabe

          Issue Links

            Activity

              People

              • Assignee:
                cmccabe Colin McCabe
                Reporter:
                cmccabe Colin McCabe
              • Votes:
                0 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: