SCALA_HOME isn't required by Spark and Kafka since Scala is retrieved by Maven.
No worries, Mark Grover. Thank you!
Apologies for the delay, RJ. LGTM too.
Thanks Andrew Purtell !
Tested with unset SCALA_HOME followed by gradle spark-deb and gradle kafka-deb, Mint 17.2 (Ubuntu 14.04)
I removed references to SCALA_HOME in the Spark and Kafka build and install scripts and all other references in the project.
I tested the changes by running gradle spark-rpm and gradle kafka-rpm. I would encourage further testing, especially with Debian packages.
Mark Grover, YoungWoo Kim would you mind reviewing this?