IntroductionSakila is a movie rental sample database provided by MySQL. This database is very suitable to demonstrate the use of Pentaho's tools in various way. In this article I will show us how to get the sample database, creating a very basic cube definition and query it - all without altering the underlying data. Prerequisites
Sakila SchemeThis is Sakila scheme - taken from MySQL's documentation. Click on it to see a larger view.Mondrian Cube Definition (XML)I will design my Sakila's cube as follows :
Based on the design, I specify all related elements into an XML definition file. I named the file Sakila.xml, put it under [MONDRIAN WEB APP ]/WEB-INF/queries folder. JSP query fileNow, we need to create a Java Server Pages (jps) file to query the cube. Named it rentalquery.jsp and put in under the same folder as Sakila.xml.Replace text in red color with your own database setting. Result
DownloadYou can download the XML definition and query file described above from the attachments at the end of the article.If you encounter any difficulties during this setup, you can ask questions in our user group : http://groups.google.com/group/phi-mondrian-olap. Related Articles |
Mondrian >