linkedin / linkedin-gradle-plugin-for-apache-hadoop

Apache License 2.0
117 stars 76 forks source link

AzkabanHelper: improve GRADLE_OPTS warning for Gradle 5 compatibility #264

Open DPUkyle opened 4 years ago

DPUkyle commented 4 years ago

The GRADLE_OPTS warning in AzkabanHelper is not quite accurate for Gradle 5 compatibility.

For projects setting a org.gradle.jvmargs value in their gradle.properties file, the GRADLE_OPTS must match this verbatim. Otherwise Gradle spawns more than one JVM process, and the (unsupported by Gradle!) System.console interaction will fail.

I suggest adding this verbiage:

CRITICAL: If you additionally set a custom org.gradle.jvmargs in your gradle.properties file, the GRADLE_OPTS must contain the exact same string.