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

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

                Author: ASF GitHub Bot
            Created on: 28/May/19 13:10
            Start Date: 28/May/19 13:10
    Worklog Time Spent: 10m 
      Work Description: lgajowy commented on pull request #8636: [BEAM-7368] 
Flink + Python + gbk load test
URL: https://github.com/apache/beam/pull/8636#discussion_r288094844
 
 

 ##########
 File path: .test-infra/jenkins/Infrastructure.groovy
 ##########
 @@ -0,0 +1,109 @@
+/*
+ * 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.
+ */
+
+import CommonJobProperties as common
+import CommonTestProperties.SDK
+
+class Infrastructure {
+
+  static void prepareSDKHarness(def context, SDK sdk, String repositoryRoot, 
String dockerTag) {
+    context.steps {
+      String sdkName = sdk.name().toLowerCase()
+      String image = "${repositoryRoot}/${sdkName}"
+      String imageTag = "${image}:${dockerTag}"
+
+      shell("echo \"Building SDK harness for ${sdkName} SDK.\"")
+      gradle {
+        rootBuildScriptDir(common.checkoutDir)
+        common.setGradleSwitches(delegate)
+        tasks(":beam-sdks-${sdkName}-container:docker")
+        switches("-Pdocker-repository-root=${repositoryRoot}")
+        switches("-Pdocker-tag=${dockerTag}")
+      }
+      shell("echo \" Tagging Harness' image\"...")
+      shell("docker tag ${image} ${imageTag}")
+      shell("echo \" Configure docker credentials\"...")
+      shell("docker-credential-gcr configure-docker")
+      shell("echo \" Pushing Harness' image\"...")
+      shell("docker push ${imageTag}")
+    }
+  }
+
+  static void prepareFlinkJobServer(def context, String repositoryRoot, String 
dockerTag) {
+    context.steps {
+      String image = "${repositoryRoot}/flink-job-server"
+      String imageTag = "${image}:${dockerTag}"
+
+      shell('echo "Building Flink job Server"')
+
+      gradle {
+        rootBuildScriptDir(common.checkoutDir)
+        common.setGradleSwitches(delegate)
+        tasks(":beam-runners-flink_2.11-job-server-container:docker")
+        switches("-Pdocker-repository-root=${repositoryRoot}")
+        switches("-Pdocker-tag=${dockerTag}")
+      }
+
+      shell("echo \" Tagging Flink Job Server's image\"...")
+      shell("docker tag ${image} ${imageTag}")
+      shell("echo \" Configure docker credentials\"...")
+      shell("docker-credential-gcr configure-docker")
+      shell("echo \" Pushing Flink Job Server's image\"...")
+      shell("docker push ${imageTag}")
+    }
+  }
+
+  static void setupFlinkCluster(def context, String clusterNamePrefix, Integer 
workerCount, String imagesToPull, String jobServerImage) {
+    String gcsBucket = 'gs://beam-flink-cluster'
+    String clusterName = getClusterName(clusterNamePrefix)
+    String artifactsDir="${gcsBucket}/${clusterName}"
+
+    context.steps {
+      environmentVariables {
+        env("GCLOUD_ZONE", "us-central1-a")
+        env("CLUSTER_NAME", clusterName)
+        env("GCS_BUCKET", gcsBucket)
+        env("FLINK_DOWNLOAD_URL", 
'http://archive.apache.org/dist/flink/flink-1.5.6/flink-1.5.6-bin-hadoop28-scala_2.11.tgz')
+        env("FLINK_NUM_WORKERS", workerCount)
 
 Review comment:
   Good catch - I should have used at least 1.7 here. It's the highest version 
I was able to use here. I know that there's 1.8 support in beam too but this 
caused problems - since flink 1.8 flink is packaged without hadoop28 and I 
cannot setup a cluster on dataproc due to that. 
   
   I created JIRA addressing problems with 1.8: 
https://issues.apache.org/jira/browse/BEAM-7440
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


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

    Worklog Id:     (was: 249329)
    Time Spent: 1.5h  (was: 1h 20m)

> Run Python GBK load tests on portable Flink runner
> --------------------------------------------------
>
>                 Key: BEAM-7368
>                 URL: https://issues.apache.org/jira/browse/BEAM-7368
>             Project: Beam
>          Issue Type: Sub-task
>          Components: testing
>            Reporter: Lukasz Gajowy
>            Assignee: Lukasz Gajowy
>            Priority: Major
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>




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

Reply via email to