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

Fix link resolution logic in hadoop-config.sh

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.22.0, 0.23.0
    • scripts
    • None
    • Reviewed
    • Updates hadoop-config.sh to always resolve symlinks when determining HADOOP_HOME. Bash built-ins or POSIX:2001 compliant cmds are now required.

    Description

      The link resolution logic in bin/hadoop-config.sh fails when when executed via a symlink, from the root directory. We can replace this logic with cd -P and pwd -P, which should be portable across Linux, Solaris, BSD, and OSX.

      Attachments

        1. hadoop-7089-1.patch
          1 kB
          Eli Collins
        2. hadoop-7089-1.patch
          3 kB
          Eli Collins
        3. hadoop-7089-2.patch
          1.0 kB
          Eli Collins
        4. hadoop-7089-3.patch
          1 kB
          Eli Collins

        Issue Links

          Activity

            People

              eli Eli Collins
              eli Eli Collins
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: