You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@amaterasu.apache.org by ya...@apache.org on 2019/05/06 02:40:35 UTC

[incubator-amaterasu] 19/36: fixing hive-site

This is an automated email from the ASF dual-hosted git repository.

yaniv pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-amaterasu.git

commit 0242b9836d8e35479d11613d8f95e40b1badc52a
Author: Yaniv Rodenski <ya...@shinto.io>
AuthorDate: Fri Apr 26 13:51:22 2019 +1000

    fixing hive-site
---
 .../spark/dispatcher/runners/providers/PySparkRunnerProvider.scala      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/frameworks/spark/dispatcher/src/main/scala/org/apache/amaterasu/frameworks/spark/dispatcher/runners/providers/PySparkRunnerProvider.scala b/frameworks/spark/dispatcher/src/main/scala/org/apache/amaterasu/frameworks/spark/dispatcher/runners/providers/PySparkRunnerProvider.scala
index 8277eee..97b43e9 100644
--- a/frameworks/spark/dispatcher/src/main/scala/org/apache/amaterasu/frameworks/spark/dispatcher/runners/providers/PySparkRunnerProvider.scala
+++ b/frameworks/spark/dispatcher/src/main/scala/org/apache/amaterasu/frameworks/spark/dispatcher/runners/providers/PySparkRunnerProvider.scala
@@ -13,7 +13,7 @@ class PySparkRunnerProvider(val env: String, val conf: ClusterConfig) extends Py
       //s" $$SPARK_HOME/conf/spark-env.sh" +
       s" && env PYSPARK_PYTHON=$getVirtualPythonPath" +
       s" env PYSPARK_DRIVER_PYTHON=$getVirtualPythonPath" +
-        s" $$SPARK_HOME/bin/spark-submit ${actionData.getSrc} --deploy-mode cluster"
+        s" $$SPARK_HOME/bin/spark-submit --master yarn-cluster --files $$SPARK_HOME/hive-site.xml ${actionData.getSrc}"
   }
 
   override def getRunnerResources: Array[String] = {