I'm trying to follow the PredictionIO tutorial for a text classification enginge provided here. I'm using OSX and PredictionIO together with PostgreSQL.
When trying to import data into my naked App with the command
pio import --appid 1 --input data/stopwords.json
I get the following error:
Exception in thread "main" java.sql.SQLException: No suitable driver found for jdbc:postgresql://localhost/pio
So obviously the JDBC driver is missing or not linked appropriately. Here's where my trouble begins. Naively I downloaded the postgres jdbc driver from this source. I read that I need to add it to java's "CLASSPATH", so I tried this by adding
export CLASSPATH=$CLASSPATH:~/java-extensions/postgresql-9.4.1207.jre6.jar
to my bash configuration. Unfortunatly this does not work. A similar error situation is discussed here - but with my knowledge I'm not able to extract useful hints from it.
--
Version details:
psql (PostgreSQL) 9.4.5 installed via homebrew
OSX Yosemite
PredictionIO 0.9.5
pio status
reports "Your system is all ready to go."