Skip to content

Commit

Permalink
[SPARK-3425] do not set MaxPermSize for OpenJDK 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Farrellee committed Sep 8, 2014
1 parent 16a73c2 commit 20f3c09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/spark-class
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ else
exit 1
fi
fi
JAVA_VERSION=$("$RUNNER" -version 2>&1 | sed 's/java version "\(.*\)\.\(.*\)\..*"/\1\2/; 1q')
JAVA_VERSION=$("$RUNNER" -version 2>&1 | sed 's/.* version "\(.*\)\.\(.*\)\..*"/\1\2/; 1q')

# Set JAVA_OPTS to be able to load native libraries and to set heap size
if [ "$JAVA_VERSION" -ge 18 ]; then
Expand Down

0 comments on commit 20f3c09

Please sign in to comment.