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:41:00 UTC
[jira] [Created] (OOZIE-3228) Oozie Spark Action - the spark job
can't load the properties in spark-defaults.conf.
Tang Yan created OOZIE-3228:
-------------------------------
Summary: 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
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();
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)