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

Add support for transitive native library dependencies in DistributedCache

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None
    • unix (different handling would be required for windows)

    Description

      [Hadoop 1660] add the tasks's working directory to it's JAVA_LIBRARY_PATH, this allows to distribute JNI based native libs with the DistributedCache by symbolically linking them to the tasks's working directory.

      There are many instances when the JNI components have transitive dependencies to other native libraries. Even if we have symlinks for these in tasks's working directory, they'll not resolved as transitive dependencies of native libraries are looked up in the shell's LD_LIBRARY_PATH and not in the JAVA_LIBRARY_PATH. This can be tackled by adding CWD to JAVA_LIBRARY_PATH in the hadoop-env.sh.
      A better way to do this would be to add the CWD only in environment of the Task Tracker as only it needs it.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              subru Subramaniam Krishnan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: