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

`spark-shell --help` fails if called from outside spark home

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.0.1, 1.1.0
    • Component/s: Spark Core
    • Labels:
      None

      Description

      When a user runs the shell with `--help` from outside of the Spark directory, it doesn't call spark-submit in the direct location:

      $ /home/patrick/Documents/spark/bin/spark-shell --help
      Usage: ./bin/spark-shell [options]
      /home/patrick/Documents/spark/bin/spark-shell: line 33: ./bin/spark-submit: No such file or directory
      

      The fix is simple, we should just use the full path as in other places where we invoke the shell.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              pwendell Patrick Wendell
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: