Use a REST client application to call the Cloudera SQL Stream Builder (SSB)
REST API. Configure the client with the SSB base URL and the session cookie.
-
Set the base URL of the requests to
https://<instance-name>-ssb-sse.<domain>/api/v2.
All endpoints use the same base URL.
-
Add the session cookie to each request as a header:
Cookie: hadoop-jwt=<hadoop-jwt-cookie-value>
Do not use basic authentication. For how to get the cookie, see Programmatic API
access.
- Optional:
Optional: Import the endpoints into the client.
-
Sign in to the Streaming SQL Console in your browser.
-
Open
https://<instance-name>-ssb-sse.<domain>/swagger/api-docs,
and save the OpenAPI description as a file.
-
Import the file into the REST client.