Spark/Gradle — Getting IP Address in build.gradle to use for starting master and workers
问题 I understand at a basic level the various moving parts of build.gradle build scripts but am having trouble tying it all together. In Apache Spark standalone mode, just trying to start a master and worker on the same box from build.gradle. (Later will extend with call with $SPARK_HOME/sbin/start-slaves with the proper argument for masterIP.) Question: How can I assign my IP address to a variable in Groovy/build.gradle so I can pass it to a command in an Exec task? We want this to run on a