[
https://issues.apache.org/jira/browse/BEAM-3060?focusedWorklogId=87136&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-87136
]
ASF GitHub Bot logged work on BEAM-3060:
----------------------------------------
Author: ASF GitHub Bot
Created on: 03/Apr/18 15:49
Start Date: 03/Apr/18 15:49
Worklog Time Spent: 10m
Work Description: chamikaramj closed pull request #4861: [BEAM-3060]
Jenkins configuration allowing to run FilebasedIO tests on HDFS.
URL: https://github.com/apache/beam/pull/4861
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git
a/.test-infra/jenkins/job_beam_PerformanceTests_FileBasedIO_IT_HDFS.groovy
b/.test-infra/jenkins/job_beam_PerformanceTests_FileBasedIO_IT_HDFS.groovy
new file mode 100644
index 00000000000..19c0f074e80
--- /dev/null
+++ b/.test-infra/jenkins/job_beam_PerformanceTests_FileBasedIO_IT_HDFS.groovy
@@ -0,0 +1,153 @@
+/*
+ * 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 common_job_properties
+
+def testsConfigurations = [
+ [
+ jobName : 'beam_PerformanceTests_TextIOIT_HDFS',
+ jobDescription : 'Runs PerfKit tests for TextIOIT on HDFS',
+ itClass : 'org.apache.beam.sdk.io.text.TextIOIT',
+ bqTable :
'beam_performance.textioit_hdfs_pkb_results',
+ prCommitStatusName: 'Java TextIO Performance Test on HDFS',
+ prTriggerPhase : 'Run Java TextIO Performance Test HDFS',
+ extraPipelineArgs: [
+ numberOfRecords: '1000000'
+ ]
+
+ ],
+ [
+ jobName :
'beam_PerformanceTests_Compressed_TextIOIT_HDFS',
+ jobDescription : 'Runs PerfKit tests for TextIOIT with
GZIP compression on HDFS',
+ itClass : 'org.apache.beam.sdk.io.text.TextIOIT',
+ bqTable :
'beam_performance.compressed_textioit_hdfs_pkb_results',
+ prCommitStatusName : 'Java CompressedTextIO Performance Test
on HDFS',
+ prTriggerPhase : 'Run Java CompressedTextIO Performance
Test HDFS',
+ extraPipelineArgs: [
+ numberOfRecords: '1000000',
+ compressionType: 'GZIP'
+ ]
+ ],
+ [
+ jobName : 'beam_PerformanceTests_AvroIOIT_HDFS',
+ jobDescription : 'Runs PerfKit tests for AvroIOIT on HDFS',
+ itClass : 'org.apache.beam.sdk.io.avro.AvroIOIT',
+ bqTable :
'beam_performance.avroioit_hdfs_pkb_results',
+ prCommitStatusName: 'Java AvroIO Performance Test on HDFS',
+ prTriggerPhase : 'Run Java AvroIO Performance Test HDFS',
+ extraPipelineArgs: [
+ numberOfRecords: '1000000'
+ ]
+ ],
+// TODO(BEAM-3945) TFRecord performance test is failing only when running on
hdfs.
+// We need to fix this before enabling this job on jenkins.
+// [
+// jobName :
'beam_PerformanceTests_TFRecordIOIT_HDFS',
+// jobDescription : 'Runs PerfKit tests for
beam_PerformanceTests_TFRecordIOIT on HDFS',
+// itClass :
'org.apache.beam.sdk.io.tfrecord.TFRecordIOIT',
+// bqTable :
'beam_performance.tfrecordioit_hdfs_pkb_results',
+// prCommitStatusName: 'Java TFRecordIO Performance Test on
HDFS',
+// prTriggerPhase : 'Run Java TFRecordIO Performance Test
HDFS',
+// extraPipelineArgs: [
+// numberOfRecords: '1000000'
+// ]
+// ],
+ [
+ jobName : 'beam_PerformanceTests_XmlIOIT_HDFS',
+ jobDescription : 'Runs PerfKit tests for
beam_PerformanceTests_XmlIOIT on HDFS',
+ itClass : 'org.apache.beam.sdk.io.xml.XmlIOIT',
+ bqTable :
'beam_performance.xmlioit_hdfs_pkb_results',
+ prCommitStatusName: 'Java XmlIOPerformance Test on HDFS',
+ prTriggerPhase : 'Run Java XmlIO Performance Test HDFS',
+ extraPipelineArgs: [
+ numberOfRecords: '100000',
+ charset: 'UTF-8'
+ ]
+ ]
+]
+
+for (testConfiguration in testsConfigurations) {
+ create_filebasedio_performance_test_job(testConfiguration)
+}
+
+
+private void create_filebasedio_performance_test_job(testConfiguration) {
+
+ // This job runs the file-based IOs performance tests on PerfKit
Benchmarker.
+ job(testConfiguration.jobName) {
+ description(testConfiguration.jobDescription)
+
+ // Set default Beam job properties.
+ common_job_properties.setTopLevelMainJobProperties(delegate)
+
+ // Allows triggering this build against pull requests.
+ common_job_properties.enablePhraseTriggeringFromPullRequest(
+ delegate,
+ testConfiguration.prCommitStatusName,
+ testConfiguration.prTriggerPhase)
+
+ // Run job in postcommit every 6 hours, don't trigger every push, and
+ // don't email individual committers.
+ common_job_properties.setPostCommit(
+ delegate,
+ '0 */6 * * *',
+ false,
+ '[email protected]',
+ false)
+
+ def pipelineArgs = [
+ project : 'apache-beam-testing',
+ tempRoot : 'gs://temp-storage-for-perf-tests',
+ ]
+ if (testConfiguration.containsKey('extraPipelineArgs')) {
+ pipelineArgs << testConfiguration.extraPipelineArgs
+ }
+
+ def pipelineArgList = []
+ pipelineArgs.each({
+ key, value -> pipelineArgList.add("\"--$key=$value\"")
+ })
+ def pipelineArgsJoined = "[" + pipelineArgList.join(',') + "]"
+
+ String namespace =
common_job_properties.getKubernetesNamespace('filebasedioithdfs')
+ String kubeconfig =
common_job_properties.getKubeconfigLocationForNamespace(namespace)
+
+ def argMap = [
+ kubeconfig : kubeconfig,
+ benchmarks : 'beam_integration_benchmark',
+ beam_it_timeout : '1200',
+ beam_it_profile : 'io-it',
+ beam_prebuilt : 'true',
+ beam_sdk : 'java',
+ beam_it_module : 'sdks/java/io/file-based-io-tests',
+ beam_it_class : testConfiguration.itClass,
+ beam_it_options : pipelineArgsJoined,
+ beam_extra_mvn_properties: '["filesystem=hdfs"]',
+ bigquery_table : testConfiguration.bqTable,
+ beam_options_config_file : makePathAbsolute('pkb-config.yml'),
+ beam_kubernetes_scripts :
makePathAbsolute('hdfs-single-datanode-cluster.yml') + ',' +
makePathAbsolute('hdfs-single-datanode-cluster-for-local-dev.yml')
+ ]
+ common_job_properties.setupKubernetes(delegate, namespace, kubeconfig)
+ common_job_properties.buildPerformanceTest(delegate, argMap)
+ common_job_properties.cleanupKubernetes(delegate, namespace,
kubeconfig)
+ }
+}
+
+static def makePathAbsolute(String path) {
+ return '"$WORKSPACE/src/.test-infra/kubernetes/hadoop/SmallITCluster/' +
path + '"'
+}
\ No newline at end of file
diff --git a/sdks/java/io/file-based-io-tests/pom.xml
b/sdks/java/io/file-based-io-tests/pom.xml
index c66537c7b15..3de4ba55ae1 100644
--- a/sdks/java/io/file-based-io-tests/pom.xml
+++ b/sdks/java/io/file-based-io-tests/pom.xml
@@ -294,6 +294,11 @@
<version>${apache.hadoop.version}</version>
<scope>runtime</scope>
</dependency>
+ <dependency>
+ <groupId>javax.xml.bind</groupId>
+ <artifactId>jaxb-api</artifactId>
+ <scope>test</scope>
+ </dependency>
</dependencies>
</profile>
</profiles>
----------------------------------------------------------------
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:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 87136)
Time Spent: 8h 20m (was: 8h 10m)
> Add performance tests for commonly used file-based I/O PTransforms
> ------------------------------------------------------------------
>
> Key: BEAM-3060
> URL: https://issues.apache.org/jira/browse/BEAM-3060
> Project: Beam
> Issue Type: Test
> Components: sdk-java-core
> Reporter: Chamikara Jayalath
> Assignee: Szymon Nieradka
> Priority: Major
> Time Spent: 8h 20m
> Remaining Estimate: 0h
>
> We recently added a performance testing framework [1] that can be used to do
> following.
> (1) Execute Beam tests using PerfkitBenchmarker
> (2) Manage Kubernetes-based deployments of data stores.
> (3) Easily publish benchmark results.
> I think it will be useful to add performance tests for commonly used
> file-based I/O PTransforms using this framework. I suggest looking into
> following formats initially.
> (1) AvroIO
> (2) TextIO
> (3) Compressed text using TextIO
> (4) TFRecordIO
> It should be possibly to run these tests for various Beam runners (Direct,
> Dataflow, Flink, Spark, etc.) and file-systems (GCS, local, HDFS, etc.)
> easily.
> In the initial version, tests can be made manually triggerable for PRs
> through Jenkins. Later, we could make some of these tests run periodically
> and publish benchmark results (to BigQuery) through PerfkitBenchmarker.
> [1] https://beam.apache.org/documentation/io/testing/
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)