{"action":"created","comment":{"url":"https://api.github.com/repos/apache/incubator-reef/pulls/comments/23173410","id":23173410,"diff_hunk":"@@ -0,0 +1,501 @@\n+/**\n+ * Licensed to the Apache Software Foundation (ASF) under one\n+ * or more contributor license agreements.  See the NOTICE file\n+ * distributed with this work for additional information\n+ * regarding copyright ownership.  The ASF licenses this file\n+ * to you under the Apache License, Version 2.0 (the\n+ * \"License\"); you may not use this file except in compliance\n+ * with the License.  You may obtain a copy of the License at\n+ *\n+ *   http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing,\n+ * software distributed under the License is distributed on an\n+ * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n+ * KIND, either express or implied.  See the License for the\n+ * specific language governing permissions and limitations\n+ * under the License.\n+ */\n+package org.apache.reef.runtime.mesos.driver;\n+\n+import com.google.protobuf.ByteString;\n+import org.apache.reef.proto.DriverRuntimeProtocol;\n+import org.apache.reef.proto.DriverRuntimeProtocol.NodeDescriptorProto;\n+import org.apache.reef.proto.DriverRuntimeProtocol.ResourceAllocationProto;\n+import org.apache.reef.proto.DriverRuntimeProtocol.ResourceReleaseProto;\n+import org.apache.reef.proto.DriverRuntimeProtocol.ResourceRequestProto;\n+import org.apache.reef.proto.DriverRuntimeProtocol.RuntimeStatusProto;\n+import org.apache.reef.proto.DriverRuntimeProtocol.RuntimeStatusProto.Builder;\n+import org.apache.reef.proto.ReefServiceProtos;\n+import org.apache.reef.proto.ReefServiceProtos.State;\n+import org.apache.reef.runtime.common.files.ClasspathProvider;\n+import org.apache.reef.runtime.common.files.REEFFileNames;\n+import org.apache.reef.runtime.mesos.driver.parameters.JobIdentifier;\n+import org.apache.reef.runtime.mesos.driver.parameters.MesosMasterIp;\n+import org.apache.reef.runtime.mesos.evaluator.MesosExecutor;\n+import org.apache.reef.runtime.mesos.proto.ReefRuntimeMesosProtocol.EvaluatorLaunchProto;\n+import org.apache.reef.runtime.mesos.proto.ReefRuntimeMesosProtocol.EvaluatorReleaseProto;\n+import org.apache.reef.runtime.mesos.util.MesosRemoteManager;\n+import org.apache.reef.tang.annotations.Parameter;\n+import org.apache.reef.wake.EventHandler;\n+import org.apache.reef.wake.remote.Encoder;\n+import org.apache.reef.wake.remote.impl.ObjectSerializableCodec;\n+import org.apache.commons.compress.archivers.tar.TarArchiveEntry;\n+import org.apache.commons.compress.archivers.tar.TarArchiveOutputStream;\n+import org.apache.commons.compress.utils.IOUtils;\n+import org.apache.commons.lang.StringUtils;\n+import org.apache.hadoop.conf.Configuration;\n+import org.apache.hadoop.fs.FileSystem;\n+import org.apache.mesos.MesosSchedulerDriver;\n+import org.apache.mesos.Protos;\n+import org.apache.mesos.Protos.CommandInfo;\n+import org.apache.mesos.Protos.CommandInfo.URI;\n+import org.apache.mesos.Protos.ExecutorID;\n+import org.apache.mesos.Protos.ExecutorInfo;\n+import org.apache.mesos.Protos.Filters;\n+import org.apache.mesos.Protos.FrameworkInfo;\n+import org.apache.mesos.Protos.Offer;\n+import org.apache.mesos.Protos.Resource;\n+import org.apache.mesos.Protos.Status;\n+import org.apache.mesos.Protos.TaskID;\n+import org.apache.mesos.Protos.TaskInfo;\n+import org.apache.mesos.Protos.Value;\n+import org.apache.mesos.Protos.Value.Type;\n+import org.apache.mesos.Scheduler;\n+import org.apache.mesos.SchedulerDriver;\n+\n+import javax.inject.Inject;\n+import java.io.BufferedInputStream;\n+import java.io.File;\n+import java.io.FileInputStream;\n+import java.io.FileOutputStream;\n+import java.io.IOException;\n+import java.nio.file.DirectoryStream;\n+import java.nio.file.Files;\n+import java.nio.file.Path;\n+import java.util.ArrayList;\n+import java.util.Collections;\n+import java.util.HashMap;\n+import java.util.List;\n+import java.util.Map;\n+import java.util.concurrent.ConcurrentHashMap;\n+import java.util.concurrent.ConcurrentLinkedQueue;\n+import java.util.concurrent.ExecutorService;\n+import java.util.logging.Level;\n+import java.util.logging.Logger;\n+import java.util.zip.GZIPOutputStream;\n+\n+/**\n+ * MesosScheduler that interacts with MesosMaster and MesosExecutors.\n+ */\n+final class MesosScheduler implements Scheduler {\n+  private static final Logger LOG = Logger.getLogger(MesosScheduler.class.getName());\n+  private static final String REEF_TAR = \"reef.tar.gz\";\n+  private static final String RUNTIME_NAME = \"MESOS\";\n+  private static final int MESOS_SLAVE_PORT = 5051; //  Assumes for now that all slaves use port 5051(default)\n+\n+  private final String reefTarUri;\n+  private final REEFFileNames fileNames;\n+  private final ClasspathProvider classpath;\n+\n+  private final REEFEventHandlers reefEventHandlers;\n+  private final ExecutorService executorService;\n+  private final MesosRemoteManager mesosRemoteManager;\n+\n+  private final SchedulerDriver mesosMaster;\n+  private final Map<String, Offer> offers = new ConcurrentHashMap<>();\n+\n+  private int outstandingRequestCounter = 0;\n+  private final ConcurrentLinkedQueue<ResourceRequestProto> outstandingRequests = new ConcurrentLinkedQueue<>();\n+  private final Map<String, ResourceRequestProto> executorIdToLaunchedRequests = new ConcurrentHashMap<>();\n+  private final Executors executors;\n+\n+  @Inject\n+  MesosScheduler(final REEFEventHandlers reefEventHandlers,\n+                 final MesosRemoteManager mesosRemoteManager,\n+                 final @Parameter(MesosMasterIp.class) String master_ip,\n+                 final @Parameter(JobIdentifier.class) String jobIdentifier,\n+                 final Executors executors,\n+                 final REEFFileNames fileNames,\n+                 final ClasspathProvider classpath) {\n+    this.mesosRemoteManager = mesosRemoteManager;\n+    this.reefEventHandlers = reefEventHandlers;\n+    this.executors = executors;\n+    this.fileNames = fileNames;\n+    this.executorService = java.util.concurrent.Executors.newSingleThreadExecutor();","path":"reef-runtime-mesos/src/main/java/org/apache/reef/runtime/mesos/driver/MesosScheduler.java","position":125,"original_position":125,"commit_id":"fc94b83f2d491fcf749df8f7420369e4b8d31c50","original_commit_id":"fc94b83f2d491fcf749df8f7420369e4b8d31c50","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},"body":"@bgchun What do you think of this? Would it be worthwhile to move it onto a Wake stage?","created_at":"2015-01-19T17:15:14Z","updated_at":"2015-01-19T17:15:14Z","html_url":"https://github.com/apache/incubator-reef/pull/52#discussion_r23173410","pull_request_url":"https://api.github.com/repos/apache/incubator-reef/pulls/52","_links":{"self":{"href":"https://api.github.com/repos/apache/incubator-reef/pulls/comments/23173410"},"html":{"href":"https://github.com/apache/incubator-reef/pull/52#discussion_r23173410"},"pull_request":{"href":"https://api.github.com/repos/apache/incubator-reef/pulls/52"}}},"pull_request":{"url":"https://api.github.com/repos/apache/incubator-reef/pulls/52","id":27589494,"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","issue_url":"https://api.github.com/repos/apache/incubator-reef/issues/52","number":52,"state":"open","locked":false,"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},"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","created_at":"2015-01-19T07:45:24Z","updated_at":"2015-01-19T17:15:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"264a96cc13177267d8989d92e0cdbb4ab5611c36","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/incubator-reef/pulls/52/commits","review_comments_url":"https://api.github.com/repos/apache/incubator-reef/pulls/52/comments","review_comment_url":"https://api.github.com/repos/apache/incubator-reef/pulls/comments/{number}","comments_url":"https://api.github.com/repos/apache/incubator-reef/issues/52/comments","statuses_url":"https://api.github.com/repos/apache/incubator-reef/statuses/fc94b83f2d491fcf749df8f7420369e4b8d31c50","head":{"label":"johnyangk:REEF-30","ref":"REEF-30","sha":"fc94b83f2d491fcf749df8f7420369e4b8d31c50","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},"repo":{"id":25674390,"name":"incubator-reef","full_name":"johnyangk/incubator-reef","owner":{"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},"private":false,"html_url":"https://github.com/johnyangk/incubator-reef","description":"Mirror of Apache REEF (Incubating)","fork":true,"url":"https://api.github.com/repos/johnyangk/incubator-reef","forks_url":"https://api.github.com/repos/johnyangk/incubator-reef/forks","keys_url":"https://api.github.com/repos/johnyangk/incubator-reef/keys{/key_id}","collaborators_url":"https://api.github.com/repos/johnyangk/incubator-reef/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/johnyangk/incubator-reef/teams","hooks_url":"https://api.github.com/repos/johnyangk/incubator-reef/hooks","issue_events_url":"https://api.github.com/repos/johnyangk/incubator-reef/issues/events{/number}","events_url":"https://api.github.com/repos/johnyangk/incubator-reef/events","assignees_url":"https://api.github.com/repos/johnyangk/incubator-reef/assignees{/user}","branches_url":"https://api.github.com/repos/johnyangk/incubator-reef/branches{/branch}","tags_url":"https://api.github.com/repos/johnyangk/incubator-reef/tags","blobs_url":"https://api.github.com/repos/johnyangk/incubator-reef/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/johnyangk/incubator-reef/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/johnyangk/incubator-reef/git/refs{/sha}","trees_url":"https://api.github.com/repos/johnyangk/incubator-reef/git/trees{/sha}","statuses_url":"https://api.github.com/repos/johnyangk/incubator-reef/statuses/{sha}","languages_url":"https://api.github.com/repos/johnyangk/incubator-reef/languages","stargazers_url":"https://api.github.com/repos/johnyangk/incubator-reef/stargazers","contributors_url":"https://api.github.com/repos/johnyangk/incubator-reef/contributors","subscribers_url":"https://api.github.com/repos/johnyangk/incubator-reef/subscribers","subscription_url":"https://api.github.com/repos/johnyangk/incubator-reef/subscription","commits_url":"https://api.github.com/repos/johnyangk/incubator-reef/commits{/sha}","git_commits_url":"https://api.github.com/repos/johnyangk/incubator-reef/git/commits{/sha}","comments_url":"https://api.github.com/repos/johnyangk/incubator-reef/comments{/number}","issue_comment_url":"https://api.github.com/repos/johnyangk/incubator-reef/issues/comments/{number}","contents_url":"https://api.github.com/repos/johnyangk/incubator-reef/contents/{+path}","compare_url":"https://api.github.com/repos/johnyangk/incubator-reef/compare/{base}...{head}","merges_url":"https://api.github.com/repos/johnyangk/incubator-reef/merges","archive_url":"https://api.github.com/repos/johnyangk/incubator-reef/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/johnyangk/incubator-reef/downloads","issues_url":"https://api.github.com/repos/johnyangk/incubator-reef/issues{/number}","pulls_url":"https://api.github.com/repos/johnyangk/incubator-reef/pulls{/number}","milestones_url":"https://api.github.com/repos/johnyangk/incubator-reef/milestones{/number}","notifications_url":"https://api.github.com/repos/johnyangk/incubator-reef/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/johnyangk/incubator-reef/labels{/name}","releases_url":"https://api.github.com/repos/johnyangk/incubator-reef/releases{/id}","created_at":"2014-10-24T06:15:53Z","updated_at":"2015-01-19T05:14:16Z","pushed_at":"2015-01-19T07:41:11Z","git_url":"git://github.com/johnyangk/incubator-reef.git","ssh_url":"git@github.com:johnyangk/incubator-reef.git","clone_url":"https://github.com/johnyangk/incubator-reef.git","svn_url":"https://github.com/johnyangk/incubator-reef","homepage":null,"size":9820,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"4bc3282d933cc529449881a80fdcc6ae80614bb7","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":25623941,"name":"incubator-reef","full_name":"apache/incubator-reef","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/incubator-reef","description":"Mirror of Apache REEF (Incubating)","fork":false,"url":"https://api.github.com/repos/apache/incubator-reef","forks_url":"https://api.github.com/repos/apache/incubator-reef/forks","keys_url":"https://api.github.com/repos/apache/incubator-reef/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/incubator-reef/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/incubator-reef/teams","hooks_url":"https://api.github.com/repos/apache/incubator-reef/hooks","issue_events_url":"https://api.github.com/repos/apache/incubator-reef/issues/events{/number}","events_url":"https://api.github.com/repos/apache/incubator-reef/events","assignees_url":"https://api.github.com/repos/apache/incubator-reef/assignees{/user}","branches_url":"https://api.github.com/repos/apache/incubator-reef/branches{/branch}","tags_url":"https://api.github.com/repos/apache/incubator-reef/tags","blobs_url":"https://api.github.com/repos/apache/incubator-reef/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/incubator-reef/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/incubator-reef/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/incubator-reef/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/incubator-reef/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/incubator-reef/languages","stargazers_url":"https://api.github.com/repos/apache/incubator-reef/stargazers","contributors_url":"https://api.github.com/repos/apache/incubator-reef/contributors","subscribers_url":"https://api.github.com/repos/apache/incubator-reef/subscribers","subscription_url":"https://api.github.com/repos/apache/incubator-reef/subscription","commits_url":"https://api.github.com/repos/apache/incubator-reef/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/incubator-reef/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/incubator-reef/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/incubator-reef/issues/comments/{number}","contents_url":"https://api.github.com/repos/apache/incubator-reef/contents/{+path}","compare_url":"https://api.github.com/repos/apache/incubator-reef/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/incubator-reef/merges","archive_url":"https://api.github.com/repos/apache/incubator-reef/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/incubator-reef/downloads","issues_url":"https://api.github.com/repos/apache/incubator-reef/issues{/number}","pulls_url":"https://api.github.com/repos/apache/incubator-reef/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/incubator-reef/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/incubator-reef/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/incubator-reef/labels{/name}","releases_url":"https://api.github.com/repos/apache/incubator-reef/releases{/id}","created_at":"2014-10-23T07:00:10Z","updated_at":"2015-01-15T23:51:06Z","pushed_at":"2015-01-15T23:51:06Z","git_url":"git://github.com/apache/incubator-reef.git","ssh_url":"git@github.com:apache/incubator-reef.git","clone_url":"https://github.com/apache/incubator-reef.git","svn_url":"https://github.com/apache/incubator-reef","homepage":null,"size":10603,"stargazers_count":7,"watchers_count":7,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":12,"mirror_url":"git://git.apache.org/incubator-reef.git","open_issues_count":4,"forks":12,"open_issues":4,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/incubator-reef/pulls/52"},"html":{"href":"https://github.com/apache/incubator-reef/pull/52"},"issue":{"href":"https://api.github.com/repos/apache/incubator-reef/issues/52"},"comments":{"href":"https://api.github.com/repos/apache/incubator-reef/issues/52/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/incubator-reef/pulls/52/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/incubator-reef/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/apache/incubator-reef/pulls/52/commits"},"statuses":{"href":"https://api.github.com/repos/apache/incubator-reef/statuses/fc94b83f2d491fcf749df8f7420369e4b8d31c50"}}}}