GithubHelp home page GithubHelp logo

ewok / metabase-sparksql-databricks-driver Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rajeshkumarravi/metabase-sparksql-databricks-driver

1.0 2.0 2.0 31 KB

License: GNU Affero General Public License v3.0

Clojure 98.93% Dockerfile 0.45% Nix 0.63%

metabase-sparksql-databricks-driver's Introduction

Metabase Driver: Spark Databricks

This project fork upgrades the Metabase plugin for Databricks to use latest Simba JDBC 42 driver and adds support to connect to Databricks SQL compute endpoints

All you need you do is drop the driver in your Metabase plugins/ directory. You can grab it here or build it yourself:

Building the driver (the fast way)

Use the Dockerfile on this repo:

  • curl -L "https://github.com/ewok/metabase-sparksql-databricks-driver/releases/download/v1.2.1/sparksql_databricks.metabase-driver.jar" -o sparksql-databricks.metabase-driver.jar
  • docker build -t metabase:metabase-head-databricks-1.2.1 .

And you can deploy to some docker registry of your own and use the image!

Example of running:

  • docker run -d -p 3000:3000 --name metabase metabase:metabase-head-databricks-1.2.1

And access http://localhost:3000.

Building the driver (advanced way)

Prereq: Install Metabase as a local maven dependency, compiled for building drivers

Clone the Metabase repo first if you haven't already done so.

cd /path/to/metabase/

Build the Spark Databricks driver

Update deps.edn file: Point metabase path to metabase/metabase-core and build-drivers extra-deps.

# (In the sparksql-databricks driver directory)
clojure -X:dev:build

Copy it to your plugins dir and restart Metabase

mkdir -p /path/to/metabase/plugins/
cp target/sparksql_databricks.metabase-driver.jar /path/to/metabase/plugins/
jar -jar /path/to/metabase/metabase.jar

or:

mkdir -p /path/to/metabase/plugins
cp target/sparksql_databricks.metabase-driver.jar /path/to/metabase/plugins/
cd /path/to/metabase_source
clojure -M:run

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.