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

hadoop-env.sh is included twice: once via hadoop-config.sh the again explicitly via scripts

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.0.0-alpha
    • Fix Version/s: None
    • Component/s: conf
    • Labels:
      None

      Description

      Many (most? all?) scripts include hadoop-env.sh twice. The first time is indirectly: scripts do ". hadoop-config.sh" and hadoop-config.sh then does ". hadoop-env.sh". Then scripts will later directly do ". hadoop-env.sh".

      This double-include is error prone.

      Note several Jira's reporting issues with HADOOP_LOG_DIR set to /user/user (e.g. /root/root, /hadoop/hadop, etc). This is because hadoop-env.sh has done "HADOOP_LOG_DIR=$HADOOP_LOG_DIR/$user". Many fixes for those issues are around addressing that one line, but it seems that this is going to be a recurring theme of breakages. It's probably also why services are routinely started with many command line arguments repeated multiple times.

      I'm not familiar enough with the "design" of all the scripts, so not sure what the solution should be.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jayf Jay Finger
              • Votes:
                0 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: