Friday, April 13, 2018

Installing Apache SystemML on the IBM Cloud

To use the latest released version of Apache SystemML on the IBM Cloud, please install it using the following commands in the jupyter shell:


1. Install the latest version of SystemML (for example: 1.2.0):
!pip install systemml
 
2.. Please execute the following command in the notebook after installation:
!ln -s -f ~/user-libs/python3/systemml/systemml-java/systemml-1.2.0-extra.jar ~/user-libs/spark2/systemml-1.2.0-extra.jar
!ln -s -f ~/user-libs/python3/systemml/systemml-java/systemml-1.2.0.jar ~/user-libs/spark2/systemml-1.2.0.jar
 
3. Then restart the kernel.
 
4. check if the correct version was installed:
!pip show systemml

5. (Important) Finally, check if the correct version is being picked up:
from systemml import MLContext
ml = MLContext(spark)
ml.version()