We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e714ecf commit 2c053a1Copy full SHA for 2c053a1
launcher/src/main/java/org/apache/spark/launcher/AbstractCommandBuilder.java
@@ -295,7 +295,11 @@ Properties loadPropertiesFile() throws IOException {
295
FileInputStream fd = null;
296
try {
297
fd = new FileInputStream(propsFile);
298
- props.load(new InputStreamReader(fd, "UTF-8"));
+ Properties rawProps = new Properties();
299
+ rawProps.load(new InputStreamReader(fd, "UTF-8"));
300
+ for (String str : rawProps.stringPropertyNames()) {
301
+ props.setProperty(str, rawProps.getProperty(str).trim());
302
+ }
303
} finally {
304
if (fd != null) {
305
0 commit comments