Following the steps of Sparkling Water from the link http://h2o-release.s3.amazonaws.com/sparkling-water/rel-2.2/0/index.html.
Running in terminal :
~/InstallFile/SparklingWater/sparkling-water-2.2.0$ bin/sparkling-shell --conf "spark.executor.memory=1g"
Please setup SPARK_HOME variable to your Spark installation
You should install and set the SPARK_HOME variable, in unix terminal run the following code to set the variable:
export SPARK_HOME="/path/to/spark"
To maintain this config you should append this to the end of your .bashrc.
See this for installation https://www.tutorialspoint.com/apache_spark/apache_spark_installation.htm