File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed
core/src/main/scala/org/apache/spark/deploy Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ export SPARK_HOME="$FWDIR"
25
25
26
26
SCALA_VERSION=2.10
27
27
28
- if [[ " $@ " = * --help ]] || [[ " $@ " = * -- h ]]; then
28
+ if [[ " $@ " = * --help ]] || [[ " $@ " = * -h ]]; then
29
29
echo " Usage: ./bin/pyspark [options]"
30
30
./bin/spark-submit --help 2>&1 | grep -v Usage 1>&2
31
31
exit 0
Original file line number Diff line number Diff line change 28
28
# Enter posix mode for bash
29
29
set -o posix
30
30
31
- if [[ " $@ " = * --help ]] || [[ " $@ " = * -- h ]]; then
31
+ if [[ " $@ " = * --help ]] || [[ " $@ " = * -h ]]; then
32
32
echo " Usage: ./bin/spark-shell [options]"
33
33
./bin/spark-submit --help 2>&1 | grep -v Usage 1>&2
34
34
exit 0
Original file line number Diff line number Diff line change @@ -334,11 +334,10 @@ object SparkSubmit {
334
334
* no files, into a single comma-separated string.
335
335
*/
336
336
private [spark] def mergeFileLists (lists : String * ): String = {
337
- lists
338
- .filter(_ != null )
339
- .filter(_ != " " )
340
- .flatMap(_.split(" ," ))
341
- .mkString(" ," )
337
+ val merged = lists.filter(_ != null )
338
+ .flatMap(_.split(" ," ))
339
+ .mkString(" ," )
340
+ if (merged == " " ) null else merged
342
341
}
343
342
}
344
343
You can’t perform that action at this time.
0 commit comments