Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-1652 Fixes and improvements for spark-submit/configs
  3. SPARK-1534

spark-submit for yarn prints warnings even though calling as expected

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.0.0
    • YARN
    • None

    Description

      I am calling spark-submit to submit application to spark on yarn (cluster mode) and it is still printing warnings:

      $ ./bin/spark-submit examples/target/scala-2.10/spark-examples_2.10-assembly-1.0.0-SNAPSHOT.jar --master yarn --deploy-mode cluster --class org.apache.spark.examples.SparkPi --arg yarn-cluster --properties-file ./spark-conf.properties
      WARNING: This client is deprecated and will be removed in a future version of Spark.
      Use ./bin/spark-submit with "--master yarn"
      --args is deprecated. Use --arg instead.

      The --args is deprecated is coming out because SparkSubmit itself needs to be updated to --arg.

      Similarly I think the Client.scala class for yarn needs to have the "Use ./bin/spark-submit with "--master yarn"" warning removed since SparkSubmit also calls it directly.

      I think the last one was supposed to warn users using spark-class directly.

      Attachments

        Issue Links

          Activity

            People

              pwendell Patrick Wendell
              tgraves Thomas Graves
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: