You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Allen Wittenauer (JIRA)" <ji...@apache.org> on 2010/03/12 01:56:27 UTC

[jira] Commented: (HADOOP-6630) hadoop-config.sh fails to get executed if hadoop wrapper scripts are in path

    [ https://issues.apache.org/jira/browse/HADOOP-6630?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12844305#action_12844305 ] 

Allen Wittenauer commented on HADOOP-6630:
------------------------------------------

Since we require bash, we can cheat a bit. BASH_SOURCE should contain the full path to the script that we are executing. This means we can piggyback off of that variable to figure out where our real landing path is at.

> hadoop-config.sh fails to get executed if hadoop wrapper scripts are in path
> ----------------------------------------------------------------------------
>
>                 Key: HADOOP-6630
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6630
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 0.20.2
>            Reporter: Allen Wittenauer
>
> If the hadoop/bin commands are in the path, hadoop-config.sh doesn't executed until much later in the stack because $0 lacks a path.

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