@oleanderhq/sdk package provides a typed client for the oleander API. It covers lake queries, Spark job management, Spark cluster lookup, and run polling.
Installation
Authentication
Create an API key in your oleander settings, or runoleander configure if you use the CLI.
You can pass the key directly or, in Node.js, set the OLEANDER_API_KEY environment variable.
Quick start
Working with clusters
Usecluster: "oleander" for oleander-managed Spark or pass the name of a registered cluster when submitting a job.
Constructor options
| Parameter | Type | Default | Description |
|---|---|---|---|
apiKey | string | OLEANDER_API_KEY env var | Your oleander API key |
baseUrl | string | https://oleander.dev | API base URL. Override for local development. |