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

Global options to spark-submit should not be position-sensitive

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • 2.0.0, 2.0.1
    • None
    • Deploy
    • None

    Description

      It is maddening that this does what you expect:

      spark-submit --packages graphframes:graphframes:0.2.0-spark2.0-s_2.11 \
          file.py 
      

      whereas this doesn't because --packages is totally ignored:

      spark-submit file.py \
          --packages graphframes:graphframes:0.2.0-spark2.0-s_2.11
      

      Ideally, global options should be valid no matter where they are specified.

      If that's too much work, then I think at the very least spark-submit should display a warning that some input is being ignored. (Ideally, it should error out, but that's probably not possible for backwards-compatibility reasons at this point.)

      Attachments

        Activity

          People

            Unassigned Unassigned
            nchammas Nicholas Chammas
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: