Your own tools
The platform's query engine speaks Trino's HTTP protocol, so a desktop SQL client, a BI tool, a Python script or anything else that speaks Trino connects to it from your own machine. The engine applies your grants — the catalogs, schemas and tables your account and groups may read — and the query log shows the query with the kind of client that sent it. When SQL is not enough, Your own Spark clusters below starts compute of your own.
What you need
- The address:
https://trino.<baseDomain>. An install withbaseDomain: data.example.comanswers onhttps://trino.data.example.com. The lab runs athttps://trino.alpha.dev.stardelt.io. - Your stardelt account — the one you sign in to Nova with. Any client signs in as you.
- The CA's PEM file if the site's certificate is not publicly trusted (an install with its own
certificate authority). A JDBC tool reads the JVM's truststore; a Python client takes the file as
verify=.
Your sign-in, three ways
The engine has no password login. It accepts a token from your identity provider, and it is the token that decides who you are. Pick the way that matches the tool.
1. A desktop tool with Trino's external authentication
For a JDBC tool that can open a browser — a desktop client or a BI tool that accepts a JDBC URL and driver properties:
jdbc:trino://trino.<baseDomain>/warehouse?SSL=true&externalAuthentication=true
Set the user property to your address (you@example.com); it is required by the protocol and the engine
does not use it. On connect the driver gets 401 with a www-authenticate challenge that carries two URLs,
opens a browser at the first, and polls the second until you have signed in once. The sign-in is the same one
you use for Nova, and the driver keeps the token for the session.
current_user in the engine is the person in the token, not the user property — the platform sets
principal-field=sub, so the engine's current_user is the token's sub: the id your identity provider
gave you, which the engine's group rules match on. SELECT current_user therefore prints an id rather than
your address.
2. A tool that takes only a token
For a client that can send an Authorization header but cannot open a browser — a Python script, a
command-line tool, a worksheet plugin:
stardelt login --host https://<baseDomain>
stardelt login runs the device flow: it prints an address and a short code, you approve them in a browser,
and it writes the sign-in to ~/.config/stardelt/credentials.json (mode 0600) with access_token,
refresh_token, expires_at, token_endpoint and client_id. Read access_token from that file and send
it as Authorization: Bearer <token>, or as the JDBC accessToken= property.
The token is short-lived. The CLI renews it from the refresh token while that is valid, so run the command
again when a client starts answering 401. There is no page in Nova that hands out a token: the file the
CLI writes is how a person holds one.
Do not commit the file or paste the token into a script that others can read; it acts as you until it expires.
3. An unattended tool
For a scheduled export, a server-side dashboard refresh or anything that runs without a person: a service principal with client credentials. It signs in with its own client id and secret, never with a person's password, and its grants are the principal's owner group — not yours.
Settings
| What you are connecting | Driver or property | Value |
|---|---|---|
| A JDBC tool | URL | jdbc:trino://trino.<baseDomain>/warehouse?SSL=true |
| A JDBC tool | driver class | io.trino.jdbc.TrinoDriver |
| A JDBC tool | SSL | true |
| A JDBC tool, browser sign-in | externalAuthentication | true |
| A JDBC tool, token | accessToken | the access_token from ~/.config/stardelt/credentials.json |
Python, trino client, token | trino.dbapi.connect | trino.dbapi.connect(host="trino.<baseDomain>", port=443, http_scheme="https", auth=trino.auth.JWTAuthentication(token)) |
Python, trino client, browser | trino.auth.OAuth2Authentication | the driver's own browser flow; see its documentation |
| The CLI | trino | trino --server https://trino.<baseDomain> --external-authentication |
| Raw HTTP | request | POST https://trino.<baseDomain>/v1/statement with Authorization: Bearer <token> |
A tool that only speaks ODBC is not supported: the engine publishes a JDBC driver, a Python client, an HTTP protocol and a CLI, and no ODBC driver. A spreadsheet reaches the warehouse through its JDBC connector or through a BI tool in front of it, not through ODBC.
What applies
- Your grants. Statements run as the identity in the token, so a catalog or table you cannot open in the SQL editor fails the same way from your own client — with the engine's error, not with a login error.
- Your groups. The catalog decides which tables the token may use, and the engine applies masks and row filters, so your client reads the same columns and rows as the SQL editor.
- The query log. Every statement is recorded under the user in the token, with Source naming the kind of client: JDBC client, Python client, Trino CLI, or the tool's own name when it identifies itself (where a query came from).
Not available yet
- ODBC. An ODBC-only tool cannot connect, and the platform does not publish a driver for one.
- A copy of the token in Nova. There is no button that mints or shows a token; use
stardelt login. - An expired token. A client that holds a token past its lifetime gets
401and must sign in again; it cannot renew the token on its own without the refresh token.
What the endpoint answers
An unauthenticated statement shows the challenge a client uses. Reproduced against the lab install
(https://trino.alpha.dev.stardelt.io), with the URLs shortened:
$ curl -sk -D- -o /dev/null -X POST https://trino.alpha.dev.stardelt.io/v1/statement -d 'select 1'
HTTP/2 401
www-authenticate: Basic realm="Trino"
www-authenticate: Bearer x_redirect_server="https://trino.alpha.dev.stardelt.io/oauth2/token/initiate/8aa4…",
x_token_server="https://trino.alpha.dev.stardelt.io/oauth2/token/f28c…",
x_token_endpoint="https://id.alpha.dev.stardelt.io/realms/stardelt/protocol/openid-connect/token",
scope="openid"
x_redirect_server is the address a browser opens; x_token_server is what the client polls until the
sign-in is complete. Both sit on the same host as the statement endpoint, so a network policy or an ingress
allow-list between your client and the engine must keep /oauth2/ reachable — otherwise only token
authentication works.
GET / and GET /ui on that host answer 404: the endpoint serves the client protocol, not a web
interface. Use Nova for the UI.
Your own Spark clusters
The Compute page in Nova lists the Spark clusters you may use. A Spark cluster is compute a team starts when it needs it and stops when it is done — for a notebook that needs more memory, a job that takes longer than a statement should, or a set of experiments. It sits next to the SQL warehouse, which answers the statements you run by hand and on a schedule (Schedule a SQL statement). For the cells that use a cluster from a notebook, see Spark in notebooks.
A cluster's card
Each cluster is one card. The top line is its display name, or its name when it has no display name, next to a phase badge: Starting, Running, Stopping, Stopped or Failed. The badge says what the platform reports; a phase it does not know is printed as it came.
The next line says who may use the cluster — its group, else its person, else — — and then its size
(small, medium or large) and its runtime, for example spark-4.1-py3.13.
A cluster another group shares with you through its viewers shows on your page, but it is read-only for you: no Start, no Stop, no endpoint in the API, and the card says the owner's group runs the code. A viewer may see the cluster; running work on it would run as the owner group, so the platform does not offer it.
Under those, a card says whose identity the cluster works with. runs as is the ServiceAccount its
driver uses: spark-cluster-driver for a cluster owned by a person, spark-cluster-driver-<group> for a
group's. catalog identity is the principal that ServiceAccount's token becomes in the catalog, written
kubernetes~<id>. The owner group's catalog role is granted to that principal, so these two lines answer
"whose tables does a job on this cluster touch?". Both are absent on the public demo's sandbox, which
the platform installs itself.
Below that, a cluster says Stops after <N> min idle, with Running since <time> in front while it
runs; the public demo's sandbox says it is shared by all visitors and resets nightly.
When a cluster says Failed
A Failed cluster shows a red badge, and under it the operator's own sentence about what went wrong. Read that sentence first: it names the runtime, the setting or the resource to change, and on this page it is the whole diagnosis you get.
Starting is not a failure. A cluster you have just started stays Starting while its server pod comes up, and the endpoint appears on the card when the cluster turns Running. Give it a minute before you worry.
Most failures come from one of three things:
- The runtime is not in the catalogue. The sentence reads
unknown runtime spark-9.9-py3.13; known: spark-4.1-py3.13, and the names afterknown:are the ones this install has. Ask an administrator to fix the runtime with Edit, then start the cluster. - The runtime catalogue is missing. The sentence reads
the runtime catalogue stardelt-spark-runtimes is missing. Nothing on this page fixes that — the install is incomplete — so send it to an administrator. - The cluster's definition was refused, or its driver cannot start. The sentence names the field, for
example
admission webhook "…sparkconnect…" denied the request: sparkConf key … is not allowed. Change that setting and start the cluster again.
Start on a failed cluster asks for another attempt with the definition as it is now, so a cluster that keeps failing keeps its message. Change what the sentence names before you start it; if it fails again, copy the sentence into the request to your administrator — it is more use than a screenshot of the badge.
Start and stop
Start appears on a cluster that is Stopped or Failed; Stop appears on one that is Running. The badge changes first, to Starting or Stopping, and the card follows the cluster to Running or Stopped by itself: the page re-reads every 15 seconds, so you do not reload it. A stopped cluster keeps its definition — the same size, runtime and settings — and starts again from it.
Create and change a cluster
Administrators have a New cluster button at the top right, which opens the same dialog as Edit on a card. The fields, in the order the dialog shows them:
-
Name — lower-case letters, digits and dashes; fixed once the cluster exists.
-
Display name — optional; shown on the card instead of the name.
-
Owner — a group or a person, and which of the two.
-
Size — small, medium or large: the preset of driver, executor and executor count.
Size Driver Each executor Max executors small 1 core, 2 GiB 1 core, 2 GiB 2 medium 2 cores, 4 GiB 2 cores, 4 GiB 4 large 4 cores, 8 GiB 4 cores, 8 GiB 8 The Driver, Executor and Max executors fields override one value each; blank means the size's number. On a named cluster the driver and each executor are pods of that shape, so the size also decides how much of a node one cluster can take. The measured numbers a node carries are on Running in production.
-
Driver — cores and memory; blank means the size preset.
-
Executor — cores and memory; blank means the size preset.
-
Max executors — optional; blank means the size preset.
-
Runtime — like
spark-4.1-py3.13. -
Image — optional: an image built from a runtime image, pinned by digest.
-
Idle minutes — when the cluster stops itself after no use;
0means never; this release refuses it for a group cluster, so leave the field empty or set a positive number. -
Environment — variables that appear in the driver and the executors.
-
Spark settings — the ones the platform does not own; its own defaults apply where you set nothing.
Who sees what
A cluster belongs to a group or to a person. Only they see it in the list, and only they and administrators may start or stop it.
For developers
The page is a thin view over GET /api/compute, POST /api/compute/{name}/start and
POST /api/compute/{name}/stop, and the resource behind it is documented in
SparkCluster.