org.apache.spark.deploy.rest.SubmitRestProtocolException: Malformed response received from server

github.com | 3 months ago
  1. 0

    [SPARK-9669][MESOS] Support PySpark on Mesos cluster mode. by tnachen · Pull Request #8349 · apache/spark · GitHub

    github.com | 3 months ago
    org.apache.spark.deploy.rest.SubmitRestProtocolException: Malformed response received from server

    Root Cause Analysis

    1. org.apache.spark.deploy.rest.SubmitRestProtocolException

      Server returned empty body

      at org.apache.spark.deploy.rest.RestSubmissionClient.readResponse()
    2. org.apache.spark
      RestSubmissionClient$$anonfun$createSubmission$3.apply
      1. org.apache.spark.deploy.rest.RestSubmissionClient.readResponse(RestSubmissionClient.scala:237)
      2. org.apache.spark.deploy.rest.RestSubmissionClient.org$apache$spark$deploy$rest$RestSubmissionClient$$postJson(RestSubmissionClient.scala:219)
      3. org.apache.spark.deploy.rest.RestSubmissionClient$$anonfun$createSubmission$3.apply(RestSubmissionClient.scala:84)
      4. org.apache.spark.deploy.rest.RestSubmissionClient$$anonfun$createSubmission$3.apply(RestSubmissionClient.scala:80)
      4 frames
    3. Scala
      TraversableLike$WithFilter.foreach
      1. scala.collection.TraversableLike$WithFilter$$anonfun$foreach$1.apply(TraversableLike.scala:772)
      2. scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
      3. scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:108)
      4. scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:771)
      4 frames
    4. org.apache.spark
      RestSubmissionClient.main
      1. org.apache.spark.deploy.rest.RestSubmissionClient.createSubmission(RestSubmissionClient.scala:80)
      2. org.apache.spark.deploy.rest.RestSubmissionClient$.run(RestSubmissionClient.scala:403)
      3. org.apache.spark.deploy.rest.RestSubmissionClient$.main(RestSubmissionClient.scala:416)
      4. org.apache.spark.deploy.rest.RestSubmissionClient.main(RestSubmissionClient.scala)
      4 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:483)
      4 frames
    6. Spark
      SparkSubmit.main
      1. org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:680)
      2. org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:180)
      3. org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:205)
      4. org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:120)
      5. org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
      5 frames