PredictionIO is a source only release so you will need to build it.
-
Build PredictionIO
Dowload the latest PredictionIO source Apache's Github here.
$ tar zxvf apache-predictionio-0.12.1.tar.gz $ cd apache-predictionio-0.11.0-incubating $ ./make-distribution.sh
This will create a tarball inside
apache-predictionio-0.12.1
extract it withtar zxvf PredictionIO-0.12.1.tar.gz
We suggest you move the resulting
PredictionIO-0.11.0-incubating
directorymv PredictionIO-0.11.0-incubating /opt/pio sudo ln -s /opt/PredictionIO-0.12.1 /usr/local/pio
PredictionIO will not run yet so read on.
-
Setup Path for PIO commands. Add PIO to the path by editing your
~/.profile
on the master. Here is an example of the important values I have in the file.# Java export JAVA_OPTS="-Xmx4g" # You may need to experiment with this setting if you get # "out of memory error"" for the driver, executor memory and # Spark settings can be set in the # sparkConf section of engine.json # Spark # this tells PIO which host to use for Spark export MASTER=spark://some-master:7077 export SPARK_HOME=/usr/local/spark # pio export PATH=$PATH:/usr/local/pio/bin:/usr/local/pio
Source these with
. ~/.profile
to get changes applied.