Return-Path: X-Original-To: apmail-flink-issues-archive@minotaur.apache.org Delivered-To: apmail-flink-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 826C31812F for ; Tue, 28 Jul 2015 23:11:29 +0000 (UTC) Received: (qmail 14196 invoked by uid 500); 28 Jul 2015 23:11:29 -0000 Delivered-To: apmail-flink-issues-archive@flink.apache.org Received: (qmail 14159 invoked by uid 500); 28 Jul 2015 23:11:29 -0000 Mailing-List: contact issues-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list issues@flink.apache.org Received: (qmail 14150 invoked by uid 99); 28 Jul 2015 23:11:29 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Jul 2015 23:11:29 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id C2E68C0337 for ; Tue, 28 Jul 2015 23:11:27 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.221 X-Spam-Level: * X-Spam-Status: No, score=1.221 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, KAM_LOTSOFHASH=0.25, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id KY3X0jz4RgmD for ; Tue, 28 Jul 2015 23:11:18 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with SMTP id 5AAC524A70 for ; Tue, 28 Jul 2015 23:11:18 +0000 (UTC) Received: (qmail 13249 invoked by uid 99); 28 Jul 2015 23:11:18 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Jul 2015 23:11:18 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 25EE3E1879; Tue, 28 Jul 2015 23:11:18 +0000 (UTC) From: ankurcha To: issues@flink.incubator.apache.org Reply-To: issues@flink.incubator.apache.org Message-ID: Subject: [GitHub] flink pull request: [FLINK-1984] Integrate Flink with Apache Mesos Content-Type: text/plain Date: Tue, 28 Jul 2015 23:11:18 +0000 (UTC) GitHub user ankurcha opened a pull request: https://github.com/apache/flink/pull/948 [FLINK-1984] Integrate Flink with Apache Mesos This pull requests adds a mesos scheduler and an executor (inspired from the work done in, now abandoned, PR #251). The highlights are as follows: * The mesos scheduler is starts a jobManager in a parallel thread based on the configuration provided using `--configDir` argument. * The mesos scheduler is not HA and should be used with marathon or similar service to ensure that there is always one instance running. This may be addressed in future patches. * The mesos scheduler uses the some new properties which can be set using the `conf/flink-conf.yaml`. The configuration directory can be specified using the `--confDir` command line argument and a list of configuration values is present in `flink-mesos/src/main/scala/org/apache/flink/mesos/scheduler/package.scala`. Example usage: ```bash mvn clean package -DskipTests -Pinclude-mesos java -Dlog4j.configuration=file:/vagrant/log4j.properties -cp *.jar org.apache.flink.mesos.scheduler.FlinkScheduler --conf-dir /vagrant ``` ```yaml # flink-conf.yaml flink.mesos.master: zk://127.0.0.1:2181/mesos flink.uberjar.location: file:///vagrant/flink-dist-0.10-SNAPSHOT.jar flink.mesos.taskmanagers.mem: 512 flink.mesos.taskmanagers.cpu: 0.5 taskmanager.logging.level: INFO streamingMode: streaming jobmanager.web.port: 8081 webclient.port: 8080 ``` ``` # log4j.properties log4j.rootLogger=INFO, console log4j.appender.console=org.apache.log4j.ConsoleAppender log4j.appender.console.layout=org.apache.log4j.PatternLayout log4j.appender.console.layout.ConversionPattern=%-5p %d{ISO8601} [%t] %c{1}: %m%n # suppress the warning that hadoop native libraries are not loaded (irrelevant for the client) log4j.logger.org.apache.hadoop.util.NativeCodeLoader=OFF log4j.logger.org.apache.flink.mesos=DEBUG # suppress the irrelevant (wrong) warnings from the netty channel handler log4j.logger.org.jboss.netty.channel.DefaultChannelPipeline=ERROR, console ``` An easy way to test this is using https://github.com/mesosphere/playa-mesos to start a mesos cluster in virtualbox (using vagrant) and copying the uberjar to /vagrant and running the above command. The job manager web UI url is set as the mesos framework url. You can merge this pull request into a Git repository by running: $ git pull https://github.com/ankurcha/flink flink-mesos Alternatively you can review and apply these changes as the patch at: https://github.com/apache/flink/pull/948.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #948 ---- commit 8a9e3791a2c3946f1adefe64845f16f89e092c77 Author: Ankur Chauhan Date: 2015-07-20T08:45:41Z wip commit a937ff65d72a938814162de1e9d97640c566b3f1 Author: Ankur Chauhan Date: 2015-07-25T19:18:42Z WIP - flink mesos integration initial commit commit 3f0237adb7b1f45a1fd80e025aa5b511f92a209c Author: Ankur Chauhan Date: 2015-07-25T19:33:57Z Add todo for config changes/issues commit d9c29e2a3174cb90626c9deccc1604e0e010d965 Author: Ankur Chauhan Date: 2015-07-27T00:03:12Z Fix some stuff commit 9910f50c11c81631ff8bb351cdf394cda753ff98 Author: Ankur Chauhan Date: 2015-07-28T01:41:20Z Add flink-mesos to dist, update scheduler and executor code commit 4f2d8fed5b2bf8f49eb4da7cd148e83016206330 Author: Ankur Chauhan Date: 2015-07-28T03:14:16Z Clean up code + codestyle changes commit b1613a965a59f89aa2e9c96dcec52fc40847423a Author: Ankur Chauhan Date: 2015-07-28T07:12:55Z Clean up executor, adjust resource defaults commit 5d39b1524b9ec565c5be28abcd4f80fab928042b Author: Ankur Chauhan Date: 2015-07-28T20:56:24Z Remove status pinging and fix logging level in TaskManagerExecutor commit 3331596c957ad774ffca31bb2c959b22422560d2 Author: Ankur Chauhan Date: 2015-07-28T22:33:54Z Code cleanup and refactoring of the conf classes commit 33f3597f1c2aa0c7582025d9c242d4aafd9cfa63 Author: Ankur Chauhan Date: 2015-07-28T22:36:04Z Remove unused dependencies and plugins commit 36846a95a64b9700d37954a2d0176b222b6adbe0 Author: Ankur Chauhan Date: 2015-07-28T22:40:50Z Use tab based indents in pom files commit 52904c8593377c349bccf599b863f2a40df0f562 Author: Ankur Chauhan Date: 2015-07-28T23:06:30Z Add comments for each of the properties ---- --- 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 infrastructure@apache.org or file a JIRA ticket with INFRA. ---