Installing Pentaho Mondrian and using it with custom web application.
I apologize in advance, if my questions seem to be too global, but there's not much info about these topics on internet and I need at least some common answers about overall direction that I should have.
Here's the deal, I have:
Some web app (Django/.NET/Nodejs, doesn't matter really)
Postgres database
Now I need some OLAP server, that I can run my MDX queries against and get analytics. In this case, Pentaho Mondrian OLAP server was chosen.
So I guess, these steps are needed to be done:
Install and run Mondrian as a server
Connect Mondrian to Postgres
Create XML cube schema file via Schema Workbench(seems to be obsolete) or manually
Call Mondrian via some API from my web app
Am I missing something?
Questions:
How do I install and run Mondrian as a server? Unfortunately, I've only found some confusing and obsolete info about it, even in official documentation.
How do I pass MDX queries from my web app to Mondrian and get results back in some meaningful way or form? Is there any API on Mondrian side?
Thank you.
Related
For simplicity and cost, we are starting our project using local MySQL running on our GCE instances. We will want to switch to CloudSQL some months down the road.
Any advice on avoiding MySQL version conflicts/challenges would be much appreciated!
The majority of the documentation is for MySQL 5.7 so as an advice I recommend you use this version and review migrating to cloudsql concept this is a guide that will guide you through how to migrate safely which migration methods exist and how to prepare you MySQL database.
Another advice which I can give you is make the tutorial migrating mysql to cloud using automated workflow tutorial this guide also says that the any MySQL database running version 5.6 or 5.7 allows you to take advantage of the Cloud SQL automated migration workflow this tutorial is important to know how works and how deploy a source MySQL database on Compute Engine. The sql page will give you more tutorials if you want to learn more.
Finally I suggest to you check de sql pricing to be aware about the billing and also I suggest to you create a workspace with this you can have more transparency and more control over your billing charges by identifying and tuning up the services that are producing more log entries.
I hope all the information that I'm giving you are helpful.
I’m a student and i’m working on my last year project, the project is about Data warhousing, BI, etc...
So Im asked to work with Apache Kylin
I did some researchs about it, learned some
And I looked for if it is possible to use a PostgreSQL as Data warehouse and make it communicate with Apache Kylin to build cubes
But found nothing...
So would you please answer to my following question:
Is it possible to make the apache kylin communicate with a postgreSQL DWH?
And if there is some hidden documentations about it would you please share it?
Time is running guys and i really appreciate your answers and guides
Thanks in advance.
Khalil
It's doable. Kylin provides data source adapter for JDBC data sources. PostgreSQL could be one of the data source adapters. MySQL is supported by default. You could check this link to learn more: http://kylin.apache.org/development/datasource_sdk.html
I was trying to achieve this using google app script but sadly app script does not have a jdbc connector for postgres. Can someone please help me out with detailed steps on what needs to be done in order to get the postgres data in spreadsheets.
If you go to JDBC Apps Script guide it says there that:
"Apps Script can connect to external databases through the JDBC
service, a wrapper around the standard Java Database Connectivity
technology. In Apps Script, the JDBC service supports Google Cloud
SQL, MySQL, Microsoft SQL Server, and Oracle databases."
No mention of PostgeSQL support as of now.
Basis:
PostgreSQL database with normal and reporting data
Downloaded the Mondrian zip from here
I have a client pivot grid component (DevExtreme Web)
As i understand it so far, i have to use a OLAP-server that functions as connector between MDX querys and a SQL database to provide XMLA as datasource. Therefor i want to use the Mondrian OLAP-server.
Question:
Now i need to start the Mondrian OLAP-server, connect it to the PostgreSQL database and provide a OLAP-schema.
How to start the Mondrian OLAP-server?
How to connect it to a PostgreSQL database?
How to provide a schema to the mondrian server?
And finaly, how to connect to the mondrian server?
I can't find any step by step guide or any usefull documentation of mondrian. It's all a big cloud to me.
The Problem
After many, many hours i found this thread: Github - Mondrian issue 202
The Mondrian developer, in this thread, clearly state that nearly the whole documentation is outdated and doesn't have much todo with the actual Mondrian 4 OLAP server.
They say that Mondrian 4 is no longer shiped with a deployable WAR file and the schema has big changes.
Start Mondrian OLAP Server
To get Mondrian running i downloaded this maven project that starts a mondrian server: mondrian-xmla-spike
I got everything running with the discribed derby Foodmart database.
You can either import the project as maven project in an IDE of your choice (what i did) or run mvn via. console.
Use Mondrian as XMLA provider
In the maven project you have to check all files (not many) for hardcoded paths and change them to your environment.
If you have done this, and startet the project as application, the Mondrian Server should be accessible via. a jetty server on the address http://localhost:8888/xmla
You can connect any component that can use a XMLA datasource and does support Mondrian OLAP server! The last part is very important. Mondrian doesn't comply with the MDX standard completely. Bad decision on the side of Penthao! Most OLAP-components or BI-tools only support MS SQL Server as XMLA datasource.
Connect Mondrian to PostgreSQL DB
To connect the existing maven project to a PostgreSQL DB i had to do some steps:
Update the Mondrian Version in the pom (xmla-spike.xml) file to a 4.x Version (i used 4.3.1.5-191). You can choose one from here: Penthao Mondrian Versions
Download the correct JDBC driver (for me it was JDBC42): PostgreSQL JDBC Driver and add the JDBC driver (.jar) to your project libraries
Or add the correct JDBC driver (i used 9.4.1209) from here: PostgreSQL JDBC Driver JDBC 4.1 to your maven pom (xmla-spike.xml).
Change the <DataSourceInfo> in the datasource.xml to:
Provider=mondrian;Jdbc=jdbc:postgresql://localhost:5432/default?user=postgre;JdbcDrivers=org.postgresql.Driver;Catalog=/WEB-INF/Schema.xml;
DB url: jdbc:postgresql://localhost:5432/default?user=postgre
=> jdbc:postgresql://host:port/database
Create the Schema.xml file and write a simple schema as descriped here: How to Design a Mondrian 4 Schema
You can look at the Foodmart example Schema with metamodel 4 here: Foodmart.xml metamodelVersion="4.0"
The <Catalog name="*"> must mach the schema name of the Schema.xml
This does work for me. I hope i can help someone else with this. If i forgot some steps, pls comment and i will add the missing steps.
I was doing a project related to the IBM competition and need to create a web application. I have done a web application before by connecting netbeans and mysql. But, now am facing problem right from installation.
Is there any workbench(like something for mysql) for db2 . If so can anyone give a link. Also, I need to make jdbc connections. So, is there any other software I need to install.
Kindly explain to me in detail as I'm not pretty sure about this.
All you need is a DB2 JDBC JAR. Pick the appropriate one for your version and add it to your CLASSPATH.
You should use either a DB2 admin client to create tables and view data or something like SQL Squirrel.