Skip to content

Accessing GoodData workspace from Zeppelin notebook

Zdenek Svoboda edited this page Jan 27, 2021 · 1 revision

This short article describes how to access GoodData workspace from Apache Zeppelin notebook.

Download GoodData JDBC driver

Download the latest version of the GoodData JDBC Driver (check the assets list).

Install Apache Zeppelin

I use the official Docker image and follow the setup described in the Zeppelin documentation.

Map the Docker image directories to local disk

Create this directory structure in your home directory:

zeppelin
+- lib
+- logs
+- notebook 

Copy the GoodData JDBC Driver JAR (e.g. gooddata-jdbc-0.74.jar) to the lib directory.

Run the Docker image

docker run -p 8080:8080 --rm -v ~/zeppelin/logs:/logs -v ~/zeppelin/notebook:/notebook -v ~/zeppelin/lib:/java-lib -e ZEPPELIN_LOG_DIR='/logs' -e ZEPPELIN_NOTEBOOK_DIR='/notebook' --name zeppelin apache/zeppelin:0.9.0

Create GoodData interpreter

Create a new JDBC interpreter.

Select jdbc interpreter group.

Fill interpreter's JDBC properties

  • default.url : jdbc:gd://<your-gooddata-server-domain>/gdc/projects/<your-gooddata-workspace-id>
  • default.user : your GoodData username
  • default.password : your GoodData password
  • default.driver : com.gooddata.jdbc.driver.AfmDriver

NOTE: You can use this guide to creating a demo GoodData workspace.

Add the JDBC driver file in the mapped local directory to the Dependencies section

Later you can always find the GoodData interpreter, edit it, and restart it

Create new notebook

Create a new Zeppelin notebook

Use the newly created GoodData interpreter

Query GoodData workspace

Query GoodData workspace. If you followed the guide to creating a demo GoodData workspace, you can see couple example queries here

Play with the data visualizations

Enjoy and send me your Zeppelin scripts!