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

Variable HADOOP_LIBEXEC_DIR must be quoted in bin/hadoop line 26

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.6.4
    • Fix Version/s: 3.0.0-alpha1
    • Component/s: scripts
    • Labels:
    • Environment:

      Linux, Unix, Mac machines with spaces in file paths

    • Tags:
      script, quick, simple

      Description

      Upon a standard download, untaring, and execution of './hadoop-2.6.4/bin/hadoop version', I received: './hadoop-2.6.4/bin/hadoop: line 26: /Users/jeffrey/Projects/Hadoop: No such file or directory'

      My project directory was called 'Hadoop Playground', with a space in it. Upon investigating, I found line 26 held:
      . $HADOOP_LIBEXEC_DIR/hadoop-config.sh
      Which means the variable $HADOOP_LIBEXEC_DIR will be handled as multiple arguments if there is a space. The solution is to quote the variable, like so:
      . "$HADOOP_LIBEXEC_DIR/hadoop-config.sh"

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jeffrey_mcateer Jeffrey McAteer
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1m
                  1m
                  Remaining:
                  Remaining Estimate - 1m
                  1m
                  Logged:
                  Time Spent - Not Specified
                  Not Specified