Add a path variable to the given environment map.
Add a path variable to the given environment map. If the map already contains this key, append the value to the existing value instead.
Escapes a string for inclusion in a command line executed by Yarn.
Escapes a string for inclusion in a command line executed by Yarn. Yarn executes commands using either
(Unix-based) bash -c "command arg1 arg2"
and that means plain quoting doesn't really work.
The argument is enclosed in single quotes and some key characters are escaped.
(Windows-based) part of a .cmd file in which case windows escaping for each argument must be applied. Windows is quite lenient, however it is usually Java that causes trouble, needing to distinguish between arguments starting with '-' and class names. If arguments are surrounded by ' java takes the following string as is, hence an argument is mistakenly taken as a class name which happens to start with a '-'. The way to avoid this, is to surround nothing with a ', but instead with a ".
A single argument.
Argument quoted for execution via Yarn's generated shell script.
Getting the initial target number of executors depends on whether dynamic allocation is enabled.
Getting the initial target number of executors depends on whether dynamic allocation is enabled. If not using dynamic allocation it gets the number of executors requested by the user.
The handler if an OOM Exception is thrown by the JVM must be configured on Windows differently: the 'taskkill' command should be used, whereas Unix-based systems use 'kill'.
The handler if an OOM Exception is thrown by the JVM must be configured on Windows differently: the 'taskkill' command should be used, whereas Unix-based systems use 'kill'.
As the JVM interprets both %p and %%p as the same, we can use either of them. However, some tests on Windows computers suggest, that the JVM only accepts '%%p'.
Furthermore, the behavior of the character '%' on the Windows command line differs from the behavior of '%' in a .cmd file: it gets interpreted as an incomplete environment variable. Windows .cmd files escape a '%' by '%%'. Thus, the correct way of writing '%%p' in an escaped way is '%%%%p'.
The correct OOM Error handler JVM option, platform dependent.
Set zero or more environment variables specified by the given input string.
Set zero or more environment variables specified by the given input string. The input string is expected to take the form "KEY1=VAL1,KEY2=VAL2,KEY3=VAL3".