Installing PredictionIO

Installing from Source

Download the Source

We will use 0.10.0 branch to download the source

git clone -b release/0.10.0

Compile Locally

  1. Execute the following shell file

    cd incubator-predictionio
  2. You will a tar file of the distribution. Extract it into the current folder

    tar -xvf PredictionIO-0.10.0-incubating.tar.gz
    cd PredictionIO-0.10.0-incubating/
  3. Install SparkML

    cd PredictionIO-0.10.0-incubating/
    mkdir vendors

    Download and extract SparkML spark-1.5.1-bin-hadoop2.6 from the apache site into the folder

    cd PredictionIO-0.10.0-incubating/

Setup PostgreSQL

Assuming you have PostgreSQL installation up and running. Make sure you create a pio role with a pio password.

ubuntu=# CREATE USER pio WITH PASSWORD 'pio';

Make sure the pio user authentication is set for md5 in the file /etc/postgresql/9.5/main/pg_hba.conf

# Database administrative login by Unix domain socket
local   all             postgres                                peer
local   all             pio                                     md5