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

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

                Author: ASF GitHub Bot
            Created on: 22/Mar/19 13:47
            Start Date: 22/Mar/19 13:47
    Worklog Time Spent: 10m 
      Work Description: iemejia commented on pull request #8115: [BEAM-2590] 
Implement basic Spark portable runner
URL: https://github.com/apache/beam/pull/8115#discussion_r268174469
 
 

 ##########
 File path: 
runners/spark/src/test/java/org/apache/beam/runners/spark/translation/SparkExecutableStageFunctionTest.java
 ##########
 @@ -0,0 +1,207 @@
+/*
+ * 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.
+ */
+package org.apache.beam.runners.spark.translation;
+
+import static 
org.apache.beam.runners.core.construction.PTransformTranslation.PAR_DO_TRANSFORM_URN;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.hamcrest.Matchers.contains;
+import static org.mockito.Matchers.any;
+import static org.mockito.Mockito.doThrow;
+import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.verifyNoMoreInteractions;
+import static org.mockito.Mockito.when;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.Iterator;
+import java.util.Map;
+import org.apache.beam.model.pipeline.v1.RunnerApi;
+import org.apache.beam.model.pipeline.v1.RunnerApi.Components;
+import org.apache.beam.model.pipeline.v1.RunnerApi.ExecutableStagePayload;
+import org.apache.beam.model.pipeline.v1.RunnerApi.PCollection;
+import org.apache.beam.runners.fnexecution.control.BundleProgressHandler;
+import org.apache.beam.runners.fnexecution.control.JobBundleFactory;
+import org.apache.beam.runners.fnexecution.control.OutputReceiverFactory;
+import org.apache.beam.runners.fnexecution.control.ProcessBundleDescriptors;
+import org.apache.beam.runners.fnexecution.control.RemoteBundle;
+import org.apache.beam.runners.fnexecution.control.StageBundleFactory;
+import org.apache.beam.runners.fnexecution.provisioning.JobInfo;
+import org.apache.beam.runners.fnexecution.state.StateRequestHandler;
+import 
org.apache.beam.runners.spark.translation.SparkExecutableStageFunction.JobBundleFactoryCreator;
+import org.apache.beam.sdk.fn.data.FnDataReceiver;
+import org.apache.beam.sdk.transforms.join.RawUnionValue;
+import org.apache.beam.sdk.util.WindowedValue;
+import org.apache.beam.vendor.grpc.v1p13p1.com.google.protobuf.Struct;
+import 
org.apache.beam.vendor.guava.v20_0.com.google.common.collect.ImmutableMap;
+import org.junit.Before;
+import org.junit.Test;
+import org.mockito.Mock;
+import org.mockito.Mockito;
+import org.mockito.MockitoAnnotations;
+
+/** Unit tests for {@link SparkExecutableStageFunction}. */
+public class SparkExecutableStageFunctionTest {
+  @Mock private JobBundleFactoryCreator jobBundleFactoryCreator;
+  @Mock private JobBundleFactory jobBundleFactory;
+  @Mock private StageBundleFactory stageBundleFactory;
+  @Mock private RemoteBundle remoteBundle;
+
+  private final String INPUT_ID = "input-id";
 
 Review comment:
   checkstyle not happy about this one.
 
----------------------------------------------------------------
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: 217241)
    Time Spent: 20m  (was: 10m)

> SparkRunner shim for Job API
> ----------------------------
>
>                 Key: BEAM-2590
>                 URL: https://issues.apache.org/jira/browse/BEAM-2590
>             Project: Beam
>          Issue Type: Sub-task
>          Components: runner-spark
>            Reporter: Kenneth Knowles
>            Assignee: Kyle Weaver
>            Priority: Major
>              Labels: portability, triaged
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Whatever the result of https://s.apache.org/beam-job-api we will need a way 
> for the JVM-based SparkRunner to receive and run pipelines authors in Python.



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

Reply via email to