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

./bin/spark-class can't find assembly jars with certain GREP_OPTIONS set

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.1
    • Fix Version/s: 1.5.2, 1.6.0
    • Component/s: Spark Shell
    • Labels:
      None

      Description

      Some GREP_OPTIONS will modify the output of the grep commands that are looking for the assembly jars in bin/spark-class.

      For example, if the -n option is specified, the grep output will look like:

      5:spark-assembly-1.5.1-hadoop2.4.0.jar

      This will not match the regular expressions, and so the jar files will not be found. We could improve the regular expression to handle cases like this and trim off extra characters, but it is difficult to know which options may or may not be set. Unsetting GREP_OPTIONS within the script handles all the cases and gives the desired output.

      By the way, the actual error seen from the commandline was this:

      Error: Could not find or load main class org.apache.spark.launcher.Main

        Attachments

          Activity

            People

            • Assignee:
              naisbitt Jeffrey Naisbitt
              Reporter:
              naisbitt Jeffrey Naisbitt
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: