Ubuntu 12.04 PredictionIO Install Notes
Enable super hacker mode
Download some utils
apt-get install -y wget curl unzip
2. Install Oracle Java JDK 7
add-apt-repository ppa:webupd8team/java apt-get update
Automatically accept the oracle license. Otherwise the install requires user intervention.
echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections
Then install java!
apt-get install -y oracle-java7-installer
Assert that java 7 is indeed installed
After that, we setup the environment variables
apt-get install -y oracle-java7-set-default
3. Installing PredictionIO
DataNodeproblem isn't a problem for us, because I think it would only happen if
/tmpwas full. In our case, we don't have a lot of data so for short term I think we can ignore this. One thing to note is that the right location for the file is
Let's create a predictionIO user:
PREDICTIONIO_USER=predictionIO useradd $PREDICTIONIO_USER -m -s /bin/bash
Then let's create our install directory, and move to it:
INSTALL_DIR=/opt/predictionIO mkdir -p $INSTALL_DIR && cd $_ chown -R $PREDICTIONIO_USER:$PREDICTIONIO_USER .
Now let's login as our new user:
And let's create ssh keys for Hadoop:
ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
b) Download the binary release
PREDICTIONIO_BINARY_RELEASE=PredictionIO-0.4.2.zip wget http://download.prediction.io/$PREDICTIONIO_BINARY_RELEASE unzip $PREDICTIONIO_BINARY_RELEASE cd $_
c) Setup Vendors
First you want to get the path to your java install dir. It's probably:
Then we can just run the setup script:
That script will have to be hacked to support unnatended setup...
d) Setup PredictionIO
Note that unlike what the docs say, mongodb doesn't need to be running before calling the start script.
The script will output the following error:
LF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
PredictionIO will still work, but I don't think it will log stuff.
You could try to install the
slf4j library, but that didn't fix it for me:
apt-get install libslf4j-java
After the thing has started, you'll have to create a user:
Now you're all done! Just open up your browser to
localhost:8000 to get to the admin page.
I had some problems installing this thing. See my thread on the google group: