Skip to content

raw-labs/das-databricks

Repository files navigation

DAS Salesforce

License

Data Access Service for Databricks.

Options

Name Description Default Required
host Databricks hostname to connect to Yes
token Databricks access token Yes
catalog Databricks catalog name Yes
schema Databricks schema to connect to Yes
warehouse Databricks Warehouse ID (found in the Salesforce UI) Yes

How to use

Prerequisites

You need to have sbt installed to build the project.

You can install sbt using sdkman:

$ sdk install sbt

Running the server

You can run the server with the following command:

$ sbt run

Docker

To run the server in a docker container you need to follow these steps:

First, you need to build the project:

$ sbt "docker:publishLocal"

Then you can run the image with the following command:

$ docker run -p 50051:50051 <image_id>

... where <image_id> is the id of the image created in the previous step. This will start the server, typically on port 50051.

You can find the image id by looking at the sbt output or by running:

$ docker images