Presentation is loading. Please wait.

Presentation is loading. Please wait.

Pentaho Mondrian OLAP CUBES.

Similar presentations


Presentation on theme: "Pentaho Mondrian OLAP CUBES."— Presentation transcript:

1 Pentaho Mondrian OLAP CUBES

2 Installation Install Tomcat (version 5.0.25 or later).
Set JAVA_HOME Environment Variable pointed to SDK installation.

3 Installation Test TOMCAT installation:
Add %JAVA_HOME%\bin to general path Test TOMCAT installation: localhost:8080

4 Installation Explode mondrian.rar to TOMCAT_HOME/webapps
Test: localhost:8080/mondrian/

5 Creating OLAP Cube Explode psw-ce-3.6.1.rar
Put mysql-connector-java bin in drivers folder. Execute workbench.bat Options Connection Use the sakila user to connect to the database sakila Open File: TOMCAT_HOME\webapps\mondrian\WEB-INF\queries\Sakila.xml See the CUBE Rentals

6 Mondrian Cube Structure
Fact Table Dimension Levels Dimension Table Measure

7 Creating a Query to Rentals OLAP Cube
File New MDX query: select {[Measures].[Rental Counts]} on columns, {[Customers].[All Customers]} ON rows from Rental Execute in JPIVOT

8

9 JPIVOT Queries and cubes are stored in the folder webapps \ mondrian \ WEB-INF \ queries. See the query: rentalquery2.jsp. See the cube Sakila.xml

10 Create a cube for Sakila Data Warehouse
Create a New Schema SakilaOlap.xml Save in TOMCAT_HOME\webapps\mondrian\WEB-INF\queries\ Configure the connection to the database with user sakila_dwh.

11 Create a cube for Sakila Data Warehouse
Create a cube named Rentals. Add a fact table: link it to the table fact_rental Add Customer dimension

12 Customer dimension Add the a hierarchy for Customer Dimension
Add the table: dim_customer Add a level (Name) for hierarchy.

13 Customer dimension

14 Film dimension Add the a hierarchy for Film Dimension
Add the table: dim_film Add a level (NameFilm) for hierarchy.

15 Film dimension

16 Date dimension Add the a hierarchy for Date Dimension
Add the table: dim_date Add a level (Year) for hierarchy. Add a level (Month) for hierarchy.

17 Date dimension

18 Date dimension

19 Add a Measure for the Cube

20 Add a Query Edit rentalquery2.jsp Change: Add the query:
jdbcUrl="jdbc:mysql://localhost/sakila_dwh?user=sakila_dwh&password=sakila_dwh" catalogUri="/WEB-INF/queries/Name.xml“ Add the query: select {[Measures].[Metrica1]} on columns, {([Customer],[Date])} ON rows from Rentals Reload Tomcat server.

21 Open JPIVOT Open Answer the following questions: Año y mes donde se realizaron mas ventas? Cuantas rentas hizo el usuario en el 2005 (en que meses?).

22 Tarea Incluya todas las dimensiones del modelo estrella de sakila.
Estudie las consultas MDX y construya dos consultas que incluyan la sentencia where y permitan explotar todas las dimensiones del cubo en jpivot.(


Download ppt "Pentaho Mondrian OLAP CUBES."

Similar presentations


Ads by Google