[
https://issues.apache.org/jira/browse/BEAM-3371?focusedWorklogId=135730&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-135730
]
ASF GitHub Bot logged work on BEAM-3371:
----------------------------------------
Author: ASF GitHub Bot
Created on: 17/Aug/18 15:50
Start Date: 17/Aug/18 15:50
Worklog Time Spent: 10m
Work Description: lgajowy opened a new pull request #6244: [BEAM-3371]
Enable running integration tests on Spark
URL: https://github.com/apache/beam/pull/6244
This PR enables running IOIT on Spark runner. One can do that by setting up
remote spark cluster (spark master) and running this command:
```
./gradlew clean integrationTest -p sdks/java/io/file-based-io-tests/
-DintegrationTestPipelineOptions='["--numberOfRecords=1000",
"--filenamePrefix=PREFIX", "--runner=TestSparkRunner",
"--sparkMaster=spark://LGs-Mac.local:7077", "--tempLocation=/tmp/"]'
-DintegrationTestRunner=spark --tests org.apache.beam.sdk.io.text.TextIOIT
--info
```
I experienced some difficulties with TFRecordIOIT, ParquetIOIT and XmlIOIT
tests:
- XmlIOIT fails on assertion (hashcode of PCollection is different that it
should be)
- ParquetIOIT suffers for dependency missmatch
(`java.lang.NoSuchMethodError:
org.apache.parquet.hadoop.ParquetWriter$Builder.<init>(Lorg/apache/parquet/io/OutputFile;)V`)
- TFRecordIOIT cannot find the created file:
`java.io.FileNotFoundException: No files found for spec: PREFIX_1534520885787*`
Those issues are of different nature than the one described in BEAM-3371 and
have to be tackled separately.
@iemejia Could you take a look when you're back? There's no need to rush -
I'll be off for 2 weeks now.
CC: @pabloem
------------------------
Follow this checklist to help us incorporate your contribution quickly and
easily:
- [ ] Format the pull request title like `[BEAM-XXX] Fixes bug in
ApproximateQuantiles`, where you replace `BEAM-XXX` with the appropriate JIRA
issue, if applicable. This will automatically link the pull request to the
issue.
- [ ] If this contribution is large, please file an Apache [Individual
Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
It will help us expedite review of your Pull Request if you tag someone
(e.g. `@username`) to look at it.
Post-Commit Tests Status (on master branch)
------------------------------------------------------------------------------------------------
Lang | SDK | Apex | Dataflow | Flink | Gearpump | Samza | Spark
--- | --- | --- | --- | --- | --- | --- | ---
Go | [](https://builds.apache.org/job/beam_PostCommit_Go_GradleBuild/lastCompletedBuild/)
| --- | --- | --- | --- | --- | ---
Java | [](https://builds.apache.org/job/beam_PostCommit_Java_GradleBuild/lastCompletedBuild/)
| [](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Apex_Gradle/lastCompletedBuild/)
| [](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Dataflow_Gradle/lastCompletedBuild/)
| [](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Flink_Gradle/lastCompletedBuild/)
| [](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Gearpump_Gradle/lastCompletedBuild/)
| [](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Samza_Gradle/lastCompletedBuild/)
| [](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Spark_Gradle/lastCompletedBuild/)
Python | [](https://builds.apache.org/job/beam_PostCommit_Python_Verify/lastCompletedBuild/)
| --- | [](https://builds.apache.org/job/beam_PostCommit_Py_VR_Dataflow/lastCompletedBuild/)
</br> [](https://builds.apache.org/job/beam_PostCommit_Py_ValCont/lastCompletedBuild/)
| --- | --- | --- | ---
----------------------------------------------------------------
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: 135730)
Time Spent: 10m
Remaining Estimate: 0h
> Add ability to stage directories with compiled classes to Spark
> ---------------------------------------------------------------
>
> Key: BEAM-3371
> URL: https://issues.apache.org/jira/browse/BEAM-3371
> Project: Beam
> Issue Type: Sub-task
> Components: runner-spark
> Reporter: Lukasz Gajowy
> Assignee: Jean-Baptiste Onofré
> Priority: Minor
> Time Spent: 10m
> Remaining Estimate: 0h
>
> This one is basically the same issue as
> [this Flink's one|https://issues.apache.org/jira/browse/BEAM-3370], except
> of two things:
> - a detection of files to stage has to be provided in Spark, which is already
> being developed [here|https://issues.apache.org/jira/browse/BEAM-981]
> - the test execution is not interrupted by FileNotFoundException but by *the
> effect* of the directory not being staged (absence of test classes on the
> Spark's classpath, hence ClassNotFoundException).
> Again, this probably could be resolved analogously as in flink, while
> BEAM-981 issue is resolved.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)