FAQ
Use readlink to get absolute paths in the scripts
--------------------------------------------------

Key: HADOOP-7089
URL: https://issues.apache.org/jira/browse/HADOOP-7089
Project: Hadoop Common
Issue Type: Improvement
Components: scripts
Reporter: Eli Collins
Assignee: Eli Collins
Priority: Minor
Fix For: 0.22.0, 0.23.0


The manual link resolution logic in bin/hadoop-config.sh can be replaced with readlink -m -n. Ditto with other uses of cd + pwd to get an absolute path, which can be fragile.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Search Discussions

  • Eli Collins (JIRA) at Jan 14, 2011 at 8:08 am
    [ https://issues.apache.org/jira/browse/HADOOP-7089?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Eli Collins resolved HADOOP-7089.
    ---------------------------------

    Resolution: Fixed
    Fix Version/s: 0.23.0
    0.22.0
    Hadoop Flags: [Reviewed]

    Committed to trunk and branch 22. Thanks Allen.
    Fix link resolution logic in hadoop-config.sh
    ---------------------------------------------

    Key: HADOOP-7089
    URL: https://issues.apache.org/jira/browse/HADOOP-7089
    Project: Hadoop Common
    Issue Type: Bug
    Components: scripts
    Reporter: Eli Collins
    Assignee: Eli Collins
    Priority: Minor
    Fix For: 0.22.0, 0.23.0

    Attachments: hadoop-7089-1.patch, hadoop-7089-1.patch, hadoop-7089-2.patch, hadoop-7089-3.patch


    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.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommon-dev @
categorieshadoop
postedJan 6, '11 at 1:58a
activeJan 14, '11 at 8:08a
posts2
users1
websitehadoop.apache.org...
irc#hadoop

1 user in discussion

Eli Collins (JIRA): 2 posts

People

Translate

site design / logo © 2022 Grokbase