beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Work logged] (BEAM-4615) Flink job server driver wrapper
Date Fri, 22 Jun 2018 18:55:00 GMT

     [ https://issues.apache.org/jira/browse/BEAM-4615?focusedWorklogId=114874&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-114874
]

ASF GitHub Bot logged work on BEAM-4615:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 22/Jun/18 18:54
            Start Date: 22/Jun/18 18:54
    Worklog Time Spent: 10m 
      Work Description: angoenka commented on a change in pull request #5726: [BEAM-4615]
Flink job server wrapper and shadow jar
URL: https://github.com/apache/beam/pull/5726#discussion_r197538333
 
 

 ##########
 File path: runners/flink/job-server/build.gradle
 ##########
 @@ -0,0 +1,53 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * License); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+apply from: project(":").file("build_rules.gradle")
+applyJavaNature(failOnWarning: true)
+
+description = "Apache Beam :: Runners :: Flink :: Job Server"
+
+apply plugin: "application"
+
+mainClassName = "org.apache.beam.runners.flink.FlinkJobServerDriver"
+
+/*
+ * We need to rely on manually specifying these evaluationDependsOn to ensure that
+ * the following projects are evaluated before we evaluate this project. This is because
+ * we reference "sourceSets.shadow.output" directly.
+ */
+evaluationDependsOn(":beam-runners-flink_2.11")
+
+// NOTE: runShadow must be used in order to run the job server. The standard run
+// task will not work because the flink runner classes only exist in the shadow
+// jar.
+runShadow {
+  def jobHost = project.hasProperty("jobHost") ? project.property("jobHost") : "localhost:8099"
+  def artifactsDir = project.hasProperty("artifactsDir") ?  project.property("artifactsDir")
: "/tmp/flink-artifacts"
+  args = ["--job-host=${jobHost}", "--artifacts-dir=${artifactsDir}"]
+  // Enable remote debugging.
+  jvmArgs = ["-Xdebug", "-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"]
+}
+
+shadowJar {
+  archiveName = "flink-job-server.jar"
+  mergeServiceFiles()
+  append "reference.conf"
+  def flinkProject = project(":beam-runners-flink_2.11")
+  from flinkProject.configurations.runtime
+  from flinkProject.sourceSets.main.output
 
 Review comment:
   Should we add mainfest 
   `    manifest {
           attributes "Main-Class": "org.apache.beam.runners.flink.FlinkJobServerDriver"
       }`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 114874)
    Time Spent: 4h  (was: 3h 50m)

> Flink job server driver wrapper
> -------------------------------
>
>                 Key: BEAM-4615
>                 URL: https://issues.apache.org/jira/browse/BEAM-4615
>             Project: Beam
>          Issue Type: New Feature
>          Components: runner-flink
>            Reporter: Ben Sidhom
>            Assignee: Ben Sidhom
>            Priority: Major
>          Time Spent: 4h
>  Remaining Estimate: 0h
>
> This includes:
>  * A gradle wrapper that can execute the Flink job server driver so that it can be easily
run locally for testing/debugging.
>  * A shadow ("uber") target that packages all portable Flink runner dependencies into
a runnable jar. This jar can then be submitted to Flink clusters via `flink run`.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message