Before anything else, I notice that you have:
/Users/AleRodriguez/spark-2.2.0-bin-hadoop2.7.tgz
But the getting started page notes:
- Spark 2.0.2. Hail should work with other versions of Spark 2, see below.
followed by:
Hail uploads distributions to Google Storage as part of our continuous
integration suite. You can download a pre-built distribution from the below
links. Make sure you download the distribution that matches your Spark
version!
But it looks like the distribution you downloaded is
/Users/AleRodriguez/Hail-0.1-0ab38b4c77e7-Spark-2.0.2.zip
Note the Spark-2.0.2
. Your hail distribution must be compatible with your
Spark version, as noted above. Try downloading Spark 2.0.2 instead:
Now, let’s take this from the top:
# cd /Users/AleRodriguez
# ls
I assume this prints a list of files including: spark-2.0.2-bin-hadoop2.7.tgz
and Hail-0.1-0ab38b4c77e7-Spark-2.0.2.zip
.
Unzip the distribution after you download it.
# unzip Hail-0.1-0ab38b4c77e7-Spark-2.0.2.zip
# ls
Now there should be a folder /Users/AleRodriguez/hail
that contains five
sub-folders:
# ls /Users/AleRodriguez/hail
bin docs jars python tutorials
Next, edit and copy the below bash commands to set up the Hail environment
variables. You may want to add these to your bash dot-file (~/.bash_profile,
~/.bashrc, etc) so that you don’t need to rerun these commands in each new
session.
Here, fill in the path to the un-tarred Spark package.
export SPARK_HOME=???
At this point, if you have not yet un-tarred the Spark package, do that:
# pwd
/Users/AleRodriguez
# tar -xvf spark-2.0.2-bin-hadoop2.7.tgz
You can read more about tar
at it’s man page:
man tar
Back to the issue of editing ~/.bashrc
, let’s fill in the “path to the
un-tarred Spark package”:
export SPARK_HOME=/Users/AleRodriguez/spark-2.0.2-bin-hadoop2.7
Here, fill in the path to the unzipped Hail distribution.
export HAIL_HOME=???
export PATH=$PATH:$HAIL_HOME/bin/
Let’s enter the unzipped Hail distribution:
export HAIL_HOME=/Users/AleRodriguez/hail
export PATH=$PATH:$HAIL_HOME/bin/
Now let’s save ~/.bashrc
. Back at the terminal, we need to load the changes we
just made:
# source ~/.bashrc
Now let’s get hailing:
# ihail