Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-5749

Fix Bash word splitting bugs in compute-classpath.sh

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2.1
    • 1.2.2, 1.3.0
    • Build
    • None

    Description

      For example this line has a word splitting bug.

      for f in ${assembly_folder}/spark-assembly*hadoop*.jar; do
        if [[ ! -e "$f" ]]; then
          echo "Failed to find Spark assembly in $assembly_folder" 1>&2
          echo "You need to build Spark before running this program." 1>&2
          exit 1
        fi
        ASSEMBLY_JAR="$f"
        num_jars=$((num_jars+1))
      done
      

      If assembly_folder contains a space, this block of code will fail.

      Attachments

        Issue Links

          Activity

            People

              gvramana Venkata Gollamudi
              nchammas Nicholas Chammas
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: