Skip to content

Commit

Permalink
[fix] Fix memory set bug format e.g. --driver-memory=2g
Browse files Browse the repository at this point in the history
  • Loading branch information
bebee4java committed Jan 20, 2021
1 parent dfea346 commit 076905e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/ides-submit
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ fi

# 设置driver jvm的最大堆内存
if [[ "$@" =~ "--driver-memory" ]]; then
DRIVER_MEM=$(echo "$@" | sed 's/.*--driver-memory\([\n \t\s]*\)\([0-9KkBbMmGgTt]*\).*/\2/g' )
DRIVER_MEM=$(echo "$@" | sed 's/.*--driver-memory\([=\n \t\s]*\)\([0-9KkBbMmGgTt]*\).*/\2/g' )
fi

if [[ "$@" =~ "spark.driver.memory" ]]; then
Expand Down

0 comments on commit 076905e

Please sign in to comment.