'Error executing query' when analyzing cube on Saiku Analytics - plugins

I've installed Plugin Saiku on Pentaho Bi Server 5.0.1 , and successfully adding cube by published it from schema workbench. The problem is I couldn't analyze the data from my cube.
It said error executing query, but there is no error in the schema I made on schema workbench.
Then i tried to move to MDX mode, and running query. It shows same error.
So I concluded there is something wrong with the connection to the database. But I don't know how to solve it.
Is there any solution for it?

I just found the solution to my problems. The error occur because I hadn't set JDBC in my Data Source. When I published from Schema Workbench, it only adding ANALYSIS data source without the JDBC. We have to manually set it up. It required on Pentaho BI Server version 5.x.
Here's link to show how to publish & set up cube in detail for Pentaho Bi Server 5.x >> http://pentaho.phi-integration.com/bi-server/publish-schema-pada-bi-server-versi-5

Related

Tableau Server Connectivity Issue with SparkSQL Connector

I have a Tableau Report which I have created on Tableau Desktop using Spark SQL Connector (Simba). I am using Databricks for Spark Execution Engine. The same report when I am trying to publish and view on Tableau Server, it is giving Driver/Access Issue (screenshot attached). I have admin access to Server though and server in running as well.
Do I need to install additional drivers on Server to get the same connected ? Apologies for my limited knowledge of Tableau Server.
Screenshot of Error
There are few experiences i want to share for the above problem :
Driver(Simba) needs to be installed on Tableau Server as well as Desktop.
Once you install the Driver on the server, re-publish the report on Server which needs databricks connection otherwise you will keep getting the same error. Tableau server only reflects/read the report published after necessary driver is present on server.
Version of your Tableau Desktop should be either same or lower then version at Tableau Server otherwise report won't be published stating version mismatch error.
Feel free to share your feedback/experience.

Publishing Alteryx data extract to Tableau server giving Duplicate table error

I am using Publish to Tableau server plugin in the Alteryx Designer.
I have a workflow which publish 2 output reports with the same name on 2 different site of the same tableau server.
I am using Alteryx Designer version(10.6.8.178.50). The same version is installed on two machines. On machine A it's publishing report without error. On machine B it's publishing report but giving error with message:'Duplicate table error'.
Any idea why is this happening?
First thing to check is that 'Overwrite' is selected on the output on the machine with the error.

How to use a PostgreSQL DB as XMLA datasource?

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.

Installing Pentaho Mondrian and integrating it with custom web application

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.

Birt Eclipse, connecting to a SQLite database through ODBC? Do I need a specific JDBC driver for Birt to use?

I have been working on this for a while now and, unfortunately have little previous exposure to Birt as well as JDBC / ODBC. I've been searching and searching but can't conclusively figure out what I need for Birt to be able to connect to an SQLite database through ODBC.
I have setup the SQLit db on my windows machine to use ODBC. From here, however, I can't figure out, in the Birt Report Designer-> New data source-> JDBC data source what I am supposed to put in in order to access the DB.
Do I need a specific driver for this that I need to install to use as the "Driver Class"
Is the path to my ODBC / SQLite db the "Driver URL" field?
I would greatly appreciate any advice on this.
There is a JDBC driver specifically for SQLite, so you don't have to use a bridge.
The URL should be:
jdbc:sqlite:/path/to/my.db
The class is org.sqlite.JDBC.
As the initial answer points out, you can download the SQLite JDBC driver. Once downloaded, you need to correctly deploy the JAR into BIRT so the driver will be available in the eclipse designer. Put the JAR in:
<BIRT Install>\eclipse\plugins\com.actuate.data.oda.jdbc.drivers_<BIRT VERSION>
Once the JAR is there, re-start Eclipse/BIRT and you should be able to create a SQLite data source pretty easily.
Good Luck!