You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Andras Piros (JIRA)" <ji...@apache.org> on 2018/05/25 12:28:00 UTC

[jira] [Reopened] (OOZIE-3228) [Spark action] Can't load properties from spark-defaults.conf

     [ https://issues.apache.org/jira/browse/OOZIE-3228?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andras Piros reopened OOZIE-3228:
---------------------------------

Reopening as the test {{TestSparkArgsExtractor.testPropertiesArePrependedToSparkArgs}} fails sometimes:
{noformat}
java.lang.AssertionError: Spark args mismatch expected:<[--master, yarn, --deploy-mode, client, --name, Spark Copy File, --class, org.apache.oozie.example.SparkFileCopy, --conf, spark.executor.extraClassPath=/etc/hbase/conf:/etc/hive/conf:$PWD/*, --conf, spark.driver.extraClassPath=/etc/hbase/conf:/etc/hive/conf:$PWD/*, --conf, spark.yarn.security.tokens.hadoopfs.enabled=false, --conf, spark.yarn.security.tokens.hive.enabled=false, --conf, spark.yarn.security.tokens.hbase.enabled=false, --conf, spark.yarn.security.credentials.hadoopfs.enabled=false, --conf, spark.yarn.security.credentials.hive.enabled=false, --conf, spark.yarn.security.credentials.hbase.enabled=false, --conf, spark.executor.extraJavaOptions=-XX:+UseG1GC -XX:+PrintGC -XX:+UnlockExperimentalVMOptions -Dlog4j.configuration=spark-log4j.properties, --conf, spark.driver.extraJavaOptions=-XX:+UseG1GC -XX:+PrintGC -XX:+UnlockExperimentalVMOptions -Dlog4j.configuration=spark-log4j.properties, --properties-file, spark-defaults-oozie-generated.properties, --files, spark-log4j.properties,hive-site.xml, --conf, spark.yarn.jar=null, --verbose, /lib/test.jar]> but was:<[--master, yarn, --deploy-mode, client, --name, Spark Copy File, --class, org.apache.oozie.example.SparkFileCopy, --conf, spark.executor.extraClassPath=/etc/hbase/conf:/etc/hive/conf:$PWD/*, --conf, spark.driver.extraClassPath=/etc/hbase/conf:/etc/hive/conf:$PWD/*, --conf, spark.yarn.security.tokens.hive.enabled=false, --conf, spark.yarn.security.tokens.hbase.enabled=false, --conf, spark.executor.extraJavaOptions=-XX:+UseG1GC -XX:+PrintGC -XX:+UnlockExperimentalVMOptions -Dlog4j.configuration=spark-log4j.properties, --conf, spark.driver.extraJavaOptions=-XX:+UseG1GC -XX:+PrintGC -XX:+UnlockExperimentalVMOptions -Dlog4j.configuration=spark-log4j.properties, --properties-file, spark-defaults-oozie-generated.properties, --files, spark-log4j.properties, --conf, spark.yarn.jar=null, --verbose, /lib/test.jar]>
	at org.junit.Assert.fail(Assert.java:93)
	at org.junit.Assert.failNotEquals(Assert.java:647)
	at org.junit.Assert.assertEquals(Assert.java:128)
	at org.apache.oozie.action.hadoop.TestSparkArgsExtractor.testPropertiesArePrependedToSparkArgs(TestSparkArgsExtractor.java:304)
{noformat}

> [Spark action] Can't load properties from spark-defaults.conf
> -------------------------------------------------------------
>
>                 Key: OOZIE-3228
>                 URL: https://issues.apache.org/jira/browse/OOZIE-3228
>             Project: Oozie
>          Issue Type: Bug
>          Components: action
>    Affects Versions: 5.0.0, 4.3.1
>            Reporter: Tang Yan
>            Assignee: Andras Piros
>            Priority: Major
>             Fix For: 5.1.0
>
>         Attachments: OOZIE-3228.001.patch, OOZIE-3228.002.patch, OOZIE-3228.003.patch, OOZIE-3228.004.patch, OOZIE-3228.005.patch
>
>
> When I create a Oozie workflow to launch a spark action, the spark job can't load the configured properties in {{spark-defaults.conf}}. I've configured each NodeManager as the Spark gateway role, so {{spark-defaults.conf}} is generated in {{/etc/spark/conf/}} on each worker node.
> In {{spark-defaults.conf}} some configuration I've set into.
> {noformat}
> spark.executor.extraClassPath=/etc/hbase/conf:/etc/hive/conf
> spark.driver.extraClassPath=/etc/hbase/conf:/etc/hive/conf
> {noformat}
> But in the Oozie spark job, they're not loaded automatically.
> {noformat}
> --conf spark.executor.extraClassPath=$PWD/*
> --conf spark.driver.extraClassPath=$PWD/*
> {noformat}



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