OLAP course set up

Contents:

Notes taken while setting up the lab environment on Linux during the OLAP training course. The system in question was running the Debian derived Ubuntu Linux.

Installation

Given the Pentaho course materials, unpack as follows.

$ cd ~/opt/pentaho
$ tar xjf /media/disk/Pentaho EE 3.5.1 GA/biserver-ee-3.5.1-GA.tar.gz
$ tar xjf /media/disk/schema\ workbench/psw-ee-3.1.4.13058_linux.tar.gz
$
will should give us:
$ ls
biserver-ee/     enterprise-console/     schema-workbench/
$
While the installation prefix used here, ~/opt/pentaho/ can be changed, make sure it does not contain any whitespace characters; some of the launcher scripts choke when given paths like .../path/to/ Pentaho EE 3.5.1 GA/biserver-ee.... Install the Debian package of MySQL as follows:
# apt-get install mysql-server
#
Connect to the database using the mysql command line client and run two DDL scripts:
$ cd ~/opt/pentaho/biserver-ee/
$ cd data/mysql5/
$ mysql -u root -p < create_repository_mysql.sql
$ mysql -u root -p < create_quartz_mysql.sql
$

Run Pentaho BI server

Start Pentaho server

$ export JAVA_HOME=/usr/lib/jvm/java-6-openjdk
$ cd biserver-ee/
$ ./start-pentaho.sh
$
This backgrounds; you can use ./stop-pentaho.sh to kill it.

Run Enterprise Console

Now start the Enterprise Console VM: $ cd ~/opt/pentaho/enterprise-console $ ./start-pec.sh Connect to http://localhost:8088/ in browser with username admin, password password. In the Enterprise Console, Install licence keys (all?). Once in, you should not see any errors.

Setup lab

Copy the directory aly3050 from the training CD to pentaho-solutions/training/aly3050/.

Each layer of the hierarchy needs to have an index.xml file, however, so:

$ cd pentaho-solutions/training/
$ cp aly3050/index.xml .
$ vi index.xml
and customize the element to "Training". Thee demo databases need to be created. First, two DDL statements:
$ mysql -u root -p
mysql> CREATE DATABASE pentaho_olap;
mysql> CREATE DATABASE pentaho_oltp;
mysql> quit
$
and then load the demo data:
$ mysql -u root -p pentaho_olap < pentaho_olap.sql
$ mysql -u root -p pentaho_oltp < pentaho_oltp.sql
$
Return to the Enterprise Console web app. Go to the "Administration" tab then "Database Connections". Add a connection for databases "pentaho_olap" and "pentaho_oltp". e username is supposed to be pentaho_admin and the password should again be password. You'll need to specify the following JDBC URI: jdbc:mysql://localhost/pentaho_olap Now connect to the Pentaho User Console at http://localhost:8080/. Upon refreshing you should see "Training" expanding to "ALY3050" and then a long list of folders. Run the "0002 - Introduction to Mondrian" test and you should see:

Action Successful count(*) 2,500

Hooray.

Using the workbench

Before we can run the Schema Workbench, we need a JDBC driver, so we'll use the one from the previous installation:

$ cd ~/opt/pentaho/schema-workbench/
$ cd drivers/
$ ln -s ../../enterprise-console/jdbc/mysql-connector-java-5.0.7-bin.jar mysql-connector-
java-5.0.7-bin.jar
$ cd ..
and now you can run the workbench:
$ ./workbench.sh
finally, in Tools -> Preferences, set the JDBC details: driver com.mysql.jdbc.Driver, URI jdbc:mysql://localhost/pentaho_olap, etc. AfC


Creator: Julia Gusman on 2010/01/21 10:14
XWiki Enterprise 1.7.2.16857 - Documentation