Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 32375200B2D for ; Thu, 16 Jun 2016 23:51:28 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 30A8D160A51; Thu, 16 Jun 2016 21:51:28 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 046C81602C5 for ; Thu, 16 Jun 2016 23:51:26 +0200 (CEST) Received: (qmail 59452 invoked by uid 500); 16 Jun 2016 21:51:25 -0000 Mailing-List: contact user-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@flink.apache.org Delivered-To: mailing list user@flink.apache.org Received: (qmail 59442 invoked by uid 99); 16 Jun 2016 21:51:25 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jun 2016 21:51:25 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 80A9718056A for ; Thu, 16 Jun 2016 21:51:25 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.88 X-Spam-Level: * X-Spam-Status: No, score=1.88 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=opencorrelate.org Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id fyAY5IDZf4_M for ; Thu, 16 Jun 2016 21:51:22 +0000 (UTC) Received: from mail-yw0-f173.google.com (mail-yw0-f173.google.com [209.85.161.173]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 170DC5F1B3 for ; Thu, 16 Jun 2016 21:51:22 +0000 (UTC) Received: by mail-yw0-f173.google.com with SMTP id c72so55453418ywb.1 for ; Thu, 16 Jun 2016 14:51:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=opencorrelate.org; s=google; h=from:subject:message-id:date:to:mime-version; bh=5tmeK9RH4LSEK6wwWgJ3LibMWHbf24scR4eyAV7D7dw=; b=RVS8DGdtGlfTfPHBUhQY0ZGXWvMLFCa0FBTufUI0t++e3ZfKV25PF7Dh4SYzF804Dy Jk9idlgz5kg8DxLzUaKb7myfo8ClwrWPjLAU+JjynFBB3D7h5AdEfTHOM5Z3d3ZyBvn8 G9XERTCNgZ1bDenKMci1YFejhPGXuDw5XrmUw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:subject:message-id:date:to:mime-version; bh=5tmeK9RH4LSEK6wwWgJ3LibMWHbf24scR4eyAV7D7dw=; b=KSCjjxYfdlkmYHKgxpbcLArf9uwP4i2W2AZzNQTsqAnAWLj2HwqErUsrhumHPW/f5g By9IcaqQ2mmTLlEJjq/gLD3Myj0lbVvPTQUbRuOqmezUOaHeZzIVtFGPmfC0boPb4Qr/ r6DRm2Bb29YyFLAWvBZGMFb305SEU6e0KyM15cDXISeNBTPKzi6mrnA/LAOuatjgzzTD kXHNz6I5jM/0xzMi6kw/aher8lHOvFfxOrMgwvieLmUWebYqWJhFxshQGN0lPJWzFcrK OTLQhw0PF2eorEN0porsxilI79VH4VkIqE/8cxMAFiiUHtVUz4+TRTrHH5dnz8dg/ZTz 4rmg== X-Gm-Message-State: ALyK8tLOKilfktR8fEk8Vzl7qzrijPgxd90B3M9Iid1a8XG0r6UpGKhSK/hDqQ62EAtthg== X-Received: by 10.37.221.6 with SMTP id u6mr3981205ybg.85.1466113880931; Thu, 16 Jun 2016 14:51:20 -0700 (PDT) Received: from [10.0.40.3] (static-100-0-198-149.bstnma.fios.verizon.net. [100.0.198.149]) by smtp.gmail.com with ESMTPSA id q7sm16110448ywg.16.2016.06.16.14.51.19 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 16 Jun 2016 14:51:19 -0700 (PDT) From: Prez Cannady Content-Type: multipart/alternative; boundary="Apple-Mail=_44499D1A-0391-45A0-9EAD-546E3E63079B" Subject: Moving from single-node, Maven examples to cluster execution Message-Id: Date: Thu, 16 Jun 2016 17:51:18 -0400 To: user@flink.apache.org Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) archived-at: Thu, 16 Jun 2016 21:51:28 -0000 --Apple-Mail=_44499D1A-0391-45A0-9EAD-546E3E63079B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Having a hard time trying to get my head around how to deploy my Flink = programs to a pre-configured, remote Flink cluster setup. My Mavenized setup uses Spring Boot (to simplify class path handling and = generate pretty logs) to execute provision a StreamExecutionEnvironment = with Kafka sources and sinks. I can also run this quite effective the = standard way (`java -jar =E2=80=A6`). What I=E2=80=99m unclear on is = how I might go about distributing this code to run on an existing Flink = cluster setup. Where do I drop the jars? Do I need to restart Flink to = do so? class AppRunner extends CommandLineRunner { val log =3D LoggerFactory.getLogger(classOf[AppRunner]) override def run(args: String*): Unit =3D { val env : StreamExecutionEnvironment =3D = StreamExecutionEnvironment.getExecutionEnvironment val consumer =3D =E2=80=A6 val producer =3D ... val stream =3D env.addSource(consumer) stream =E2=80=A6 // Do some stuff =E2=80=A6 .addSink(producer) env.execute } } =E2=80=A6 @SpringBootApplication object App { @throws(classOf[Exception]) def main( args: Array[String] ) : Unit =3D { SpringApplication.run(classOf[AppRunner], args: _*) } } Try as I might, I couldn=E2=80=99t find any clear instructions on how to = do this in the documentation. The cluster documentation ends with = starting it. = https://ci.apache.org/projects/flink/flink-docs-release-0.8/cluster_setup.= html#starting-flink = The Wikiedits example doesn=E2=80=99t involve any third party = dependencies, so I=E2=80=99m not clear on how to manage class path for = it. = https://ci.apache.org/projects/flink/flink-docs-release-1.0/quickstart/run= _example_quickstart.html = Any help in getting me on the right, preferably best practices path = would be appreciated. Prez Cannady =20 p: 617 500 3378 =20 e: revprez@opencorrelate.org =20 GH: https://github.com/opencorrelate =20= LI: https://www.linkedin.com/in/revprez = =20 --Apple-Mail=_44499D1A-0391-45A0-9EAD-546E3E63079B Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
Having a hard time trying to get my head = around how to deploy my Flink programs to a pre-configured, remote Flink = cluster setup.

My Mavenized setup uses Spring Boot (to simplify class path = handling and generate pretty logs) to execute provision a = StreamExecutionEnvironment with Kafka sources and sinks. I can also run = this quite effective the standard way (`java -jar =E2=80=A6`). =  What I=E2=80=99m unclear on is how I might go about distributing = this code to run on an existing Flink cluster setup.  Where do I = drop the jars? Do I need to restart Flink to do so?

class AppRunner extends = CommandLineRunner {

    val log =3D = LoggerFactory.getLogger(classOf[AppRunner])


  =   override def run(args: String*): Unit =3D {

  =       val env : StreamExecutionEnvironment =3D = StreamExecutionEnvironment.getExecutionEnvironment

  =   val consumer =3D =E2=80=A6
    val producer =3D = ...
  =       val stream =3D = env.addSource(consumer)

        = stream
  =           =E2=80=A6
        // Do = some stuff
  =       =E2=80=A6
          =   .addSink(producer)

        = env.execute
  =   }



}
=E2=80=A6

@SpringBootApplication
object App {


  =   @throws(classOf[Exception])
    def main( args: = Array[String] ) : Unit =3D {
        = SpringApplication.run(classOf[AppRunner], args: _*)
    }
}


Try as I might, I couldn=E2=80=99t find any = clear instructions on how to do this in the documentation.  The = cluster documentation ends with starting it.


The Wikiedits example doesn=E2=80=99t = involve any third party dependencies, so I=E2=80=99m not clear on how to = manage class path for it.


Any help in getting me on the = right, preferably best practices path would be appreciated.






= --Apple-Mail=_44499D1A-0391-45A0-9EAD-546E3E63079B--