{"action":"created","issue":{"url":"https://api.github.com/repos/apache/incubator-reef/issues/52","labels_url":"https://api.github.com/repos/apache/incubator-reef/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/apache/incubator-reef/issues/52/comments","events_url":"https://api.github.com/repos/apache/incubator-reef/issues/52/events","html_url":"https://github.com/apache/incubator-reef/pull/52","id":54734787,"number":52,"title":"[REEF-30] Run REEF on Mesos","user":{"login":"johnyangk","id":4114572,"avatar_url":"https://avatars.githubusercontent.com/u/4114572?v=3","gravatar_id":"","url":"https://api.github.com/users/johnyangk","html_url":"https://github.com/johnyangk","followers_url":"https://api.github.com/users/johnyangk/followers","following_url":"https://api.github.com/users/johnyangk/following{/other_user}","gists_url":"https://api.github.com/users/johnyangk/gists{/gist_id}","starred_url":"https://api.github.com/users/johnyangk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnyangk/subscriptions","organizations_url":"https://api.github.com/users/johnyangk/orgs","repos_url":"https://api.github.com/users/johnyangk/repos","events_url":"https://api.github.com/users/johnyangk/events{/privacy}","received_events_url":"https://api.github.com/users/johnyangk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-01-19T07:45:24Z","updated_at":"2015-01-22T20:58:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/incubator-reef/pulls/52","html_url":"https://github.com/apache/incubator-reef/pull/52","diff_url":"https://github.com/apache/incubator-reef/pull/52.diff","patch_url":"https://github.com/apache/incubator-reef/pull/52.patch"},"body":"JIRA: [REEF-30]: https://issues.apache.org/jira/browse/REEF-30\r\n\r\n\r\n## reef_on_mesos\r\n\r\n#### What's in it\r\n- reef-runtime-mesos package\r\n- bin/runmesostests.sh (for running reef-tests on Mesos clusters)\r\n- HelloREEFMesos in reef-examples\r\n- MesosTestEnvironment in reef-tests\r\n- pom.xml changes(adding reef-runtime-mesos) in root, reef-tests, reef-examples\r\n\r\n#### How to test(reef-tests) it\r\n\r\nPretty similar to running reef-tests on YARN.\r\n\r\n1. run mesos daemons (http://mesos.apache.org/gettingstarted/)\r\n2. At $REEF_HOME, \"mvn clean install -DskipTests\"\r\n3. At $REEF_HOME/reef-tests, \"mvn jar:test-jar\"\r\n4. At $REEF_HOME, \"bin/runmesostests.sh $YOUR_MESOS_MASTER_IP\" \r\n\r\nNote that you may need to do additional tasks in installing Mesos depending on your platform. For example, on my Mac, I have \"export MESOS_NATIVE_LIBRARY=/usr/local/lib/libmesos-0.21.0.dylib\" and configured Mesos with \"../configure --with-svn=/usr/local/Cellar/subversion/1.8.10_1\" command. \r\n\r\nGoogle is your friend :)\r\n\r\n\r\n#### reef-runtime-mesos package structure\r\nClient\r\n\r\n* MesosClientConfiguration - A ConfigurationModule for the Mesos resource manager\r\n* MesosJobSubmissionHandler - A JobSubmissionHandler that configures and launches the driver to run on Mesos.\r\n\r\nDriver\r\n\r\n* MesosDriverConfiguration - Binds Driver's runtime event handlers\r\n* MesosOfferManager - Mesos Scheduler that communicates with MesosMaster and MesosExecutor for REEF Driver\r\n* MesosResource(Request/Release/Launch)Handler - Handles requests from REEF driver.\r\n* MesosRuntime(Start/Stop)Handler - Handler of RuntimeStart/RuntimeStop for the MESOS Runtime.\r\n\r\nEvaluator\r\n\r\n* EvaluatorLaunchHandler - Handles evaluator launch requests from the driver\r\n* EvaluatorReleaseHandler - Handles evaluator release requests from the driver\r\n* MesosExecutor - Mesos Executor that oversees the lifecycle of a REEF Evaluator process\r\n\r\n\r\n#### Open issues\r\n\r\nAs this package is still in development stage, many open issues remain. They will be registered as JIRA issues once this PR is merged.\r\n\r\n- Launch REEF Driver on a slave node in the cluster\r\n- onRuntimeStop Mesos driver stops before receiving TASK_FINISHED (confusing status on web UI)\r\n- For NodeDescriptorProtos, Mesos Slave's ports are statically defined (5051)\r\n- Use links, not copies in setting up Driver folder structure (there was a similar issue for reef-runtime-local)\r\n- Create tests to cover corner cases not covered by reef-tests\r\n- Support HA REEF Driver\r\n- Support rack/node locality\r\n- Support prioritized requests\r\n- Propose making reef-runtime-local/process package public such that it can be also used for spawning Mesos Driver/Mesos Evaluator processes\r\n- Integrate reef-tests on Mesos into CI\r\n- Explore better ways of mapping Mesos Executor/Task to REEF Evaluator/Task\r\n- Replace the current ad-hoc MesosRemoteManager with Tang's namespace magic\r\n- Research on reserving unused offers instead of declining them \r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/apache/incubator-reef/issues/comments/71097230","html_url":"https://github.com/apache/incubator-reef/pull/52#issuecomment-71097230","issue_url":"https://api.github.com/repos/apache/incubator-reef/issues/52","id":71097230,"user":{"login":"markusweimer","id":502371,"avatar_url":"https://avatars.githubusercontent.com/u/502371?v=3","gravatar_id":"","url":"https://api.github.com/users/markusweimer","html_url":"https://github.com/markusweimer","followers_url":"https://api.github.com/users/markusweimer/followers","following_url":"https://api.github.com/users/markusweimer/following{/other_user}","gists_url":"https://api.github.com/users/markusweimer/gists{/gist_id}","starred_url":"https://api.github.com/users/markusweimer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markusweimer/subscriptions","organizations_url":"https://api.github.com/users/markusweimer/orgs","repos_url":"https://api.github.com/users/markusweimer/repos","events_url":"https://api.github.com/users/markusweimer/events{/privacy}","received_events_url":"https://api.github.com/users/markusweimer/received_events","type":"User","site_admin":false},"created_at":"2015-01-22T20:58:06Z","updated_at":"2015-01-22T20:58:06Z","body":"Thanks! I will merge this. I won't have the ability to test it on a Mesos cluster. But given that you tested it, we should be fine."}}