Setting up FoodMart on Mondrian
I don’t know either if I’m stupid or if the Pentaho developers are lacking of effort in helping poor conference speakers like me.
If you want to show someone the features of something, you have to set up a demo. And half the times these demos require data. And if you are setting up a demo for a business intelligence tool, data is essential!
Pentaho provides you with a dataset to use in demos and as a playground (thank you), but it’s quite difficult to set it up. An early adopter may judge this as project immatureness, while Mondrian is all but immature!
That’s what you need to set up the FoodMart database on PostgreSQL before demoing Mondrian (don’t try that with MySQL: it will take hours!)
First, locate a copy of these dependencies: log4j, eigenbase-xom, eigenbase-properties, eigenbase-resgen, commons-logging and postgresql-8.4-701.jdbc4.jar (or a suitable postgres jdbc driver): let’s say you have them in folder “mondrian/lib” and that you are in folder “mondrian”
Then write in a console:
java -cp .:lib/mondrian.jar:lib/log4j.jar:lib/eigenbase-xom.jar:lib/eigenbase-properties.jar:lib/eigenbase-resgen.jar:lib/commons-logging.jar:lib/postgresql-8.4-701.jdbc4.jar mondrian.test.loader.MondrianFoodMartLoader -verbose -tables -data -jdbcDrivers=org.postgresql.Driver -outputJdbcURL='jdbc:postgresql://localhost/mondrian?user=postgres&password=postgres' -inputFile=demo/FoodMartCreateData.sql
Then wait for a minute.
Bah, maybe it’s just me, too comfy sat on ant and maven.
August 27th, 2010 at 5:07 pm
Hi
Did you ever try to set up this demo for oracle
if you did, please help me because it throws me a java.lang.classNotFounException
I’m doing it exactly like you, but with the oracle jdbcDrivers and URL
what can it be?
August 27th, 2010 at 8:15 pm
ClassNotFound means you’ve missed something with the classpath. My post was about loading a postgres database and the -cp argument list the postgres jdbc driver jar. Replace it with the oracle one and see it working. If it won’t, read the stacktrace and/or ask for help to some of your coworkers
Best regards
November 11th, 2010 at 11:37 am
It works like a charm for me. thanks!