Repository: hive Updated Branches: refs/heads/master 13fbae573 -> 8e1e537bf
HIVE-18533: Add option to use InProcessLauncher to submit spark jobs (Sahil Takiar, reviewed by Rui Li) (addendum) Project: http://git-wip-us.apache.org/repos/asf/hive/repo Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/8e1e537b Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/8e1e537b Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/8e1e537b Branch: refs/heads/master Commit: 8e1e537bf9f8204fd27e806af0f62aed980bf36a Parents: 13fbae5 Author: Sahil Takiar <takiar.sa...@gmail.com> Authored: Wed Jun 6 12:48:57 2018 -0500 Committer: Sahil Takiar <stak...@cloudera.com> Committed: Wed Jun 6 12:48:57 2018 -0500 ---------------------------------------------------------------------- .../spark/client/SparkLauncherSparkClient.java | 2 +- .../spark/client/TestSparkLauncherSparkClient.java | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hive/blob/8e1e537b/spark-client/src/main/java/org/apache/hive/spark/client/SparkLauncherSparkClient.java ---------------------------------------------------------------------- diff --git a/spark-client/src/main/java/org/apache/hive/spark/client/SparkLauncherSparkClient.java b/spark-client/src/main/java/org/apache/hive/spark/client/SparkLauncherSparkClient.java index cf52c4f..d45b77f 100644 --- a/spark-client/src/main/java/org/apache/hive/spark/client/SparkLauncherSparkClient.java +++ b/spark-client/src/main/java/org/apache/hive/spark/client/SparkLauncherSparkClient.java @@ -61,7 +61,7 @@ public class SparkLauncherSparkClient extends AbstractSparkClient { SparkAppHandle.State.KILLED, SparkAppHandle.State.LOST); - private AbstractLauncher<InProcessLauncher> sparkLauncher; + private transient AbstractLauncher<InProcessLauncher> sparkLauncher; SparkLauncherSparkClient(RpcServer rpcServer, Map<String, String> conf, http://git-wip-us.apache.org/repos/asf/hive/blob/8e1e537b/spark-client/src/test/java/org/apache/hive/spark/client/TestSparkLauncherSparkClient.java ---------------------------------------------------------------------- diff --git a/spark-client/src/test/java/org/apache/hive/spark/client/TestSparkLauncherSparkClient.java b/spark-client/src/test/java/org/apache/hive/spark/client/TestSparkLauncherSparkClient.java index 8434fa9..986215e 100644 --- a/spark-client/src/test/java/org/apache/hive/spark/client/TestSparkLauncherSparkClient.java +++ b/spark-client/src/test/java/org/apache/hive/spark/client/TestSparkLauncherSparkClient.java @@ -1,3 +1,20 @@ +/* + * 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.hive.spark.client; import org.apache.hive.spark.client.rpc.RpcServer;