Github user viesti commented on the pull request:

    https://github.com/apache/spark/pull/8349#issuecomment-140315329
  
    Trying this out by compiling current master (at the time of writing 
`a2249359d5b0368318a714b292bb1d0dc70c0e27`) with mesos 0.23.0 and 0.24.0 and I 
got the following error:
    
    ```
    0% ./bin/spark-submit --master mesos://localhost:5050 --deploy-mode cluster 
test.py
    Using Spark's default log4j profile: 
org/apache/spark/log4j-defaults.properties
    15/09/15 10:54:31 INFO RestSubmissionClient: Submitting a request to launch 
an application in mesos://localhost:5050.
    Exception in thread "main" 
org.apache.spark.deploy.rest.SubmitRestProtocolException: Malformed response 
received from server
        at 
org.apache.spark.deploy.rest.RestSubmissionClient.readResponse(RestSubmissionClient.scala:258)
        at 
org.apache.spark.deploy.rest.RestSubmissionClient.org$apache$spark$deploy$rest$RestSubmissionClient$$postJson(RestSubmissionClient.scala:219)
        at 
org.apache.spark.deploy.rest.RestSubmissionClient$$anonfun$createSubmission$3.apply(RestSubmissionClient.scala:84)
        at 
org.apache.spark.deploy.rest.RestSubmissionClient$$anonfun$createSubmission$3.apply(RestSubmissionClient.scala:80)
        at 
scala.collection.TraversableLike$WithFilter$$anonfun$foreach$1.apply(TraversableLike.scala:772)
        at 
scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
        at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:108)
        at 
scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:771)
        at 
org.apache.spark.deploy.rest.RestSubmissionClient.createSubmission(RestSubmissionClient.scala:80)
        at 
org.apache.spark.deploy.rest.RestSubmissionClient$.run(RestSubmissionClient.scala:403)
        at 
org.apache.spark.deploy.rest.RestSubmissionClient$.main(RestSubmissionClient.scala:416)
        at 
org.apache.spark.deploy.rest.RestSubmissionClient.main(RestSubmissionClient.scala)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at 
org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:680)
        at 
org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:180)
        at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:205)
        at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:120)
        at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
    Caused by: org.apache.spark.deploy.rest.SubmitRestProtocolException: Server 
returned empty body
        at 
org.apache.spark.deploy.rest.RestSubmissionClient.readResponse(RestSubmissionClient.scala:237)
        ... 20 more
    ```
    
    Capturing traffic to my local mesos show that spark-submit tries to `POST 
/v1/submissions/create` to which mesos responds with `HTTP/1.1 404`. So I'm 
probably doing something categorically wrong here :) Any pointers to help would 
make me and my colleague glad :)


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to