{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/8872","labels_url":"https://api.github.com/repos/apache/spark/issues/8872/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/8872/comments","events_url":"https://api.github.com/repos/apache/spark/issues/8872/events","html_url":"https://github.com/apache/spark/pull/8872","id":107807072,"number":8872,"title":"[SPARK-10749][MESOS] Support multiple roles with mesos cluster mode.","user":{"login":"tnachen","id":67244,"avatar_url":"https://avatars.githubusercontent.com/u/67244?v=3","gravatar_id":"","url":"https://api.github.com/users/tnachen","html_url":"https://github.com/tnachen","followers_url":"https://api.github.com/users/tnachen/followers","following_url":"https://api.github.com/users/tnachen/following{/other_user}","gists_url":"https://api.github.com/users/tnachen/gists{/gist_id}","starred_url":"https://api.github.com/users/tnachen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tnachen/subscriptions","organizations_url":"https://api.github.com/users/tnachen/orgs","repos_url":"https://api.github.com/users/tnachen/repos","events_url":"https://api.github.com/users/tnachen/events{/privacy}","received_events_url":"https://api.github.com/users/tnachen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-09-22T21:31:01Z","updated_at":"2015-12-02T15:36:19Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/8872","html_url":"https://github.com/apache/spark/pull/8872","diff_url":"https://github.com/apache/spark/pull/8872.diff","patch_url":"https://github.com/apache/spark/pull/8872.patch"},"body":"Currently the Mesos cluster dispatcher is not using offers from multiple roles correctly, as it simply aggregates all the offers resource values into one, but doesn't apply them correctly before calling the driver as Mesos needs the resources from the offers to be specified which role it originally belongs to. Multiple roles is already supported with fine/coarse grain scheduler, so porting that logic here to the cluster scheduler.\r\n\r\nhttps://issues.apache.org/jira/browse/SPARK-10749\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/161336155","html_url":"https://github.com/apache/spark/pull/8872#issuecomment-161336155","issue_url":"https://api.github.com/repos/apache/spark/issues/8872","id":161336155,"user":{"login":"dragos","id":133742,"avatar_url":"https://avatars.githubusercontent.com/u/133742?v=3","gravatar_id":"","url":"https://api.github.com/users/dragos","html_url":"https://github.com/dragos","followers_url":"https://api.github.com/users/dragos/followers","following_url":"https://api.github.com/users/dragos/following{/other_user}","gists_url":"https://api.github.com/users/dragos/gists{/gist_id}","starred_url":"https://api.github.com/users/dragos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dragos/subscriptions","organizations_url":"https://api.github.com/users/dragos/orgs","repos_url":"https://api.github.com/users/dragos/repos","events_url":"https://api.github.com/users/dragos/events{/privacy}","received_events_url":"https://api.github.com/users/dragos/received_events","type":"User","site_admin":false},"created_at":"2015-12-02T15:36:19Z","updated_at":"2015-12-02T15:36:19Z","body":"So, I like the code as it is now. I'm having trouble running Spark on Mesos in cluster mode, as always, so I didn't manage to test it, but that's most likely unrelated to code changes here. How did you test it?"}}