You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Tang Yan (JIRA)" <ji...@apache.org> on 2018/04/24 01:44:00 UTC
[jira] [Updated] (OOZIE-3228) Oozie Spark Action - the spark job
can't load the properties in spark-defaults.conf.
[ https://issues.apache.org/jira/browse/OOZIE-3228?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tang Yan updated OOZIE-3228:
----------------------------
Description:
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 the spark-defaults.conf is generated in /etc/spark/conf/ on each worker node.
was:
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 the spark-defaults.conf is generated in /etc/spark/conf/ on each worker node.
Here is the code lines related I've filtered. Why it's listing the spark-defaults.conf file under the current dir (final File localDir = new File(".");)?
private void loadLocalizedDefaultPropertiesFile(final Properties properties) {
final File localizedDefaultConfFile = SparkMain.getMatchingFile(SPARK_DEFAULTS_FILE_PATTERN);
if (localizedDefaultConfFile != null) {
System.out.println(String.format("Reading Spark config from file %s...", localizedDefaultConfFile.getName()));
loadProperties(localizedDefaultConfFile, properties);
}
}
static File getMatchingFile(final Pattern fileNamePattern) {
final File localDir = new File(".");
final String[] localFileNames = localDir.list();
> Oozie Spark Action - the spark job can't load the properties in spark-defaults.conf.
> ------------------------------------------------------------------------------------
>
> Key: OOZIE-3228
> URL: https://issues.apache.org/jira/browse/OOZIE-3228
> Project: Oozie
> Issue Type: Bug
> Components: action
> Affects Versions: 4.3.1
> Reporter: Tang Yan
> Priority: Major
>
> 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 the spark-defaults.conf is generated in /etc/spark/conf/ on each worker node.
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)