[
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)