[ https://issues.apache.org/jira/browse/BEAM-4615?focusedWorklogId=114917&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-114917 ]
ASF GitHub Bot logged work on BEAM-4615: ---------------------------------------- Author: ASF GitHub Bot Created on: 22/Jun/18 20:59 Start Date: 22/Jun/18 20:59 Worklog Time Spent: 10m Work Description: lukecwik 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_r197566562 ########## 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 { Review comment: You don't need to specify the type. ---------------------------------------------------------------- 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: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 114917) Time Spent: 4h 20m (was: 4h 10m) > 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 20m > 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)