[ https://issues.apache.org/jira/browse/BEAM-2029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15987641#comment-15987641 ]
ASF GitHub Bot commented on BEAM-2029: -------------------------------------- GitHub user aviemzur opened a pull request: https://github.com/apache/beam/pull/2746 [BEAM-2029] NullPointerException when using multi output ParDo in Spark runner in streaming mode. Be sure to do all of the following to help us incorporate your contribution quickly and easily: - [ ] Make sure the PR title is formatted like: `[BEAM-<Jira issue #>] Description of pull request` - [ ] Make sure tests pass via `mvn clean verify`. (Even better, enable Travis-CI on your fork and ensure the whole test matrix passes). - [ ] Replace `<Jira issue #>` in the title with the actual Jira issue number, if there is one. - [ ] If this contribution is large, please file an Apache [Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf). --- You can merge this pull request into a Git repository by running: $ git pull https://github.com/aviemzur/beam npe-in-multiple-output-pardo-spark-streaming Alternatively you can review and apply these changes as the patch at: https://github.com/apache/beam/pull/2746.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #2746 ---- ---- > NullPointerException when using multi output ParDo in Spark runner in > streaming mode. > ------------------------------------------------------------------------------------- > > Key: BEAM-2029 > URL: https://issues.apache.org/jira/browse/BEAM-2029 > Project: Beam > Issue Type: Bug > Components: runner-spark > Reporter: Etienne Chauchot > Assignee: Aviem Zur > Fix For: First stable release > > > Behavior: > {{context.borrowDataset(transform)}} returns null. > stackTrace > {code} > 17/04/20 15:00:58 INFO org.apache.beam.runners.spark.SparkRunner$Evaluator: > Evaluating GroupByKey > Exception in thread "main" java.lang.NullPointerException > at > org.apache.beam.runners.spark.translation.streaming.StreamingTransformTranslator$6.evaluate(StreamingTransformTranslator.java:272) > at > org.apache.beam.runners.spark.translation.streaming.StreamingTransformTranslator$6.evaluate(StreamingTransformTranslator.java:267) > at > org.apache.beam.runners.spark.SparkRunner$Evaluator.doVisitTransform(SparkRunner.java:409) > at > org.apache.beam.runners.spark.SparkRunner$Evaluator.visitPrimitiveTransform(SparkRunner.java:395) > at > org.apache.beam.sdk.runners.TransformHierarchy$Node.visit(TransformHierarchy.java:488) > at > org.apache.beam.sdk.runners.TransformHierarchy$Node.visit(TransformHierarchy.java:483) > at > org.apache.beam.sdk.runners.TransformHierarchy$Node.visit(TransformHierarchy.java:483) > at > org.apache.beam.sdk.runners.TransformHierarchy$Node.visit(TransformHierarchy.java:483) > at > org.apache.beam.sdk.runners.TransformHierarchy$Node.visit(TransformHierarchy.java:483) > at > org.apache.beam.sdk.runners.TransformHierarchy$Node.visit(TransformHierarchy.java:483) > at > org.apache.beam.sdk.runners.TransformHierarchy$Node.visit(TransformHierarchy.java:483) > at > org.apache.beam.sdk.runners.TransformHierarchy$Node.access$400(TransformHierarchy.java:232) > at > org.apache.beam.sdk.runners.TransformHierarchy.visit(TransformHierarchy.java:207) > at org.apache.beam.sdk.Pipeline.traverseTopologically(Pipeline.java:384) > at > org.apache.beam.runners.spark.translation.streaming.SparkRunnerStreamingContextFactory.call(SparkRunnerStreamingContextFactory.java:88) > at > org.apache.beam.runners.spark.translation.streaming.SparkRunnerStreamingContextFactory.call(SparkRunnerStreamingContextFactory.java:47) > at > org.apache.spark.streaming.api.java.JavaStreamingContext$$anonfun$10.apply(JavaStreamingContext.scala:776) > at > org.apache.spark.streaming.api.java.JavaStreamingContext$$anonfun$10.apply(JavaStreamingContext.scala:775) > at scala.Option.getOrElse(Option.scala:120) > at > org.apache.spark.streaming.StreamingContext$.getOrCreate(StreamingContext.scala:864) > at > org.apache.spark.streaming.api.java.JavaStreamingContext$.getOrCreate(JavaStreamingContext.scala:775) > at > org.apache.spark.streaming.api.java.JavaStreamingContext.getOrCreate(JavaStreamingContext.scala) > at org.apache.beam.runners.spark.SparkRunner.run(SparkRunner.java:155) > at org.apache.beam.runners.spark.SparkRunner.run(SparkRunner.java:85) > at org.apache.beam.sdk.Pipeline.run(Pipeline.java:276) > at > org.apache.beam.integration.nexmark.NexmarkRunner.run(NexmarkRunner.java:1232) > at > org.apache.beam.integration.nexmark.NexmarkDriver.runAll(NexmarkDriver.java:69) > at > org.apache.beam.integration.nexmark.drivers.NexmarkSparkDriver.main(NexmarkSparkDriver.java:46) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147) > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346)