And this is what I got
> Task :compileScala FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileScala'.
> javac returned non-zero exit code
make: *** [build/libs/hail-all-spark.jar] Error 1
A problem occurred evaluating root project 'hail'.
286 > Could not resolve all dependencies for configuration ':justSpark'.
287 > Could not find org.apache.spark:spark-mllib_2.11:3.1.1.
Following by other errors too, but I am assuming it could be caused by previous errors.
I’m sorry you’re having trouble installing Hail! The key issue is that Spark 3.1.1 is not compatible with Scala 2.11. That’s why you get this error:
287 > Could not find org.apache.spark:spark-mllib_2.11:3.1.1.
This command:
make install HAIL_COMPILE_NATIVES=1 SCALA_VERSION=2.11.12 SPARK_VERSION=3.1.1
Attempts to install Hail with Scala 2.11.12 and Spark 3.1.1. If you need to use Scala 2.11, you must compile with Spark version 2.4.5. If you need to use Spark version 3.1.1, then you must compile with Scala version 2.12.13.
Moreover, if you are installing Hail on a Spark Cluster, you don’t need to use the “For Software Developers” installation guide. You can use the simpler “Install Hail on a Spark Cluster” installation guide. Assuming you’ve already installed the yum packages for BLAS, LAPACK, Java, lz4-devel, python3, and g++, you can just run this:
make install-on-cluster HAIL_COMPILE_NATIVES=1 SCALA_VERSION=2.12.13 SPARK_VERSION=3.1.1
Usually the BUILD FAILED message is preceded by an explanation of the failure. Was anything else printed? If there is a lot of output you can upload it to pastebin and share the link here.
* What went wrong:
Execution failed for task ':compileScala'.
> Failed to run Gradle Worker Daemon
> Process 'Gradle Worker Daemon 2' finished with non-zero exit value 137
I saw your new thread here, but let’s keep it all in one thread.
It’s difficult for us to diagnose what is going wrong without more of the error output. Was there more printed that you could share, possibly using pastebin if it’s too long? If not, you could try running gradle with the --stacktrace option.
Also, is there a reason you’re unable to use Scala 2.12? We test with Scala 2.12 and Spark 3.1.1.
Ah, okay, good to know you’re not prevented from using Scala 2.12!
We noticed recently that some of our installation docs are out of data. We made some fixes, but they won’t push to the website until our next release. You can see the updated “Install Hail on a Spark Cluster” page on our github here. I would suggest trying the updated instructions, in partitcular
make install-on-cluster HAIL_COMPILE_NATIVES=1 SCALA_VERSION=2.12.13 SPARK_VERSION=3.1.1
And you’re right about make making it difficult to pass flags to gradle. It’s pretty easy to modify the makefile to add options to pass to gradle. But try with the right scala and spark versions first.