Maui chat for Cloudera SQL Stream Builder
Maui, your AI coworker in Anywhere Cloud, checks, troubleshoots, and runs your Cloudera SQL Stream Builder (SSB) jobs based on requests that you describe in plain language.
Maui offers a conversational alternative to many of the tasks that you perform in the Streaming SQL Console. Instead of opening jobs, logs, and the SQL editor, you describe what you want to find out or change, such as why a job failed or whether a job keeps up with its input. Maui breaks the request into steps, runs the necessary operations through SSB, and summarizes the results in the conversation.
You can ask Maui about your projects, jobs, tables, and data sources. It can explain why a job failed and check your SQL before you run it. When you ask, it can also start or stop jobs and create tables.
Maui uses a single unified agent—the Maui agent—to handle requests across Workspace artifacts, connected data services, and platform administration without requiring you to switch between separate specialist modes.
Before you begin
Maui is available after an administrator enables Maui and grants you access. Make sure that the following requirements are met:
- An administrator has enabled Maui. For administrator setup, see Maui and AI Capability onboarding in the Anywhere Cloud documentation.
- You have at least the AI capability user role on the AI capability backend engine. For more information, see Assigning application roles for AI Capability in the Anywhere Cloud documentation.
- You have the
adminoruserrole on the Cloudera Streaming Analytics instance. Maui reads and changes SSB only within that role.
Opening Maui
Maui connects you to the unified Maui agent in AI Capability. Use it from the Home page, the practitioner view in a Workspace, or an embedded panel in supported data applications. For more information, see Using Maui and Starting Maui in the Anywhere Cloud documentation.
To use Maui in SSB:
- In the top bar of the Streaming SQL Console, click AI Assistant,
the icon to the left of the User menu.
The chat panel opens next to the console.
- Enter your request in Ask anything…, then click
Send message.
Name the project, job, or table that you mean.
- If Maui shows a question or an approval card, answer it on the card.
- Optional: To stop Maui while it is working, click Stop generating.
From the panel header, you can also do the following:
- Start a new conversation with New Chat.
- Open an earlier conversation with Chat History.
- Make the panel larger with Enter full screen.
- Close the panel with Minimize. To open it again, click AI Assistant.
Your chats belong to a Workspace and carry over between services. You can start a chat in SSB and continue it in the Anywhere Cloud Console, or the other way around. For more information, see Managing chat history in the Anywhere Cloud documentation.
A new chat in SSB starts in the Workspace of your most recent chat. If you have no earlier chat, Maui creates a new Workspace when you send your first message, and names it after that message. To choose a different Workspace before you send the first message, click the Workspace chip above the input, then select a Workspace or New Workspace. After the first message, the chat stays in that Workspace.
How Maui works with SSB
- Actions run as you
- Maui accesses SSB with your identity. Your role on the Cloudera Streaming Analytics instance controls what Maui can see and do, as it does in the Streaming SQL Console. If you do not have permission for an operation, Maui cannot perform it. Chat sessions are private to you; another user cannot see your session context.
- Requests target specific resources
-
Every operation applies to a specific project, job, or table. If your request does not identify which one to use and more than one is available, Maui shows a question card so you can choose. For example, if you have more than one Cloudera Streaming Analytics engine instance and do not name one, Maui asks which instance to use. An instance is identified by the name of its deployment.
If you do not name a project, Maui uses your active project in SSB. To work in another project, name it in your request.
Maui does not receive context from the SSB page that you have open, so name the project, job, or table that you want to work with in your request. Maui changes only what you name. If a request can match more than one job, for example stop the broken one, Maui asks which job you mean.
- Changes require your approval
-
Before the Maui agent runs a write or destructive step, Maui shows a structured plan and waits for you to approve, modify, or cancel. Read-only questions and generated code that has not been submitted for execution do not require that approval step.
In SSB, Maui asks for approval before it runs, stops, or restarts a job, and before it creates a table. For a multi-step request, such as stopping several jobs, Maui asks you to approve each change separately, and nothing changes until you approve it. Changes that Maui already applied remain in effect, even if you reject a later change or a later change fails. For more information, see Responding to Maui questions and How the Maui agent handles requests in the Anywhere Cloud documentation.
On the approval card, click Approve or Reject.
What Maui can do
Maui can perform the following operations in SSB:
- List your projects, and the jobs, tables, and data sources in a project
- Inspect the SQL, settings, health, and logs of jobs
- Explain why a job failed
- Check SQL before you run it, and write SQL for your tables
- Run, stop, and restart SQL jobs
- Create or replace tables
The following table shows example requests that only read SSB, so Maui does not ask for approval:
| Task | Example request |
|---|---|
| List your projects | Which SSB projects do I have? |
| List the jobs in a project, with state, uptime, and parallelism | Which jobs are running in the orders project? |
| Show the SQL and settings of a job | Show me the SQL of enrich_orders. |
| Check the health of a running job: throughput, backpressure, checkpoints, and watermark delay | Is enrich_orders keeping up? |
| Read the latest JobManager or TaskManager log lines of a running job | Show me the last 200 lines of the TaskManager log for enrich_orders. |
| Explain why a job failed, from its failure history | Why did enrich_orders fail? |
| Check whether SQL is valid | Check this query before I run it: … |
| List tables and data sources | Which tables can I query in orders? |
| Write SQL for your tables | Write a query that counts orders per minute from orders_raw. |
Log reads return up to 1,000 lines per log, from at most three TaskManagers. Maui masks the values of credential properties in the logs and in table definitions.
Running and changing jobs and tables
The following table shows example requests that change SSB and what Maui asks you first:
| Task | Example request | What Maui asks first |
|---|---|---|
| Run a SQL job | Run this query as a job named orders_per_minute. | SQL validation, then approval. |
| Stop a job | Stop orders_per_minute. | Whether to take a savepoint, then approval. |
| Restart a job from its last savepoint | Restart enrich_orders from its last savepoint. | Approval. |
| Create or replace a table | Create a datagen table called test_orders with these columns: … | Approval. |
Maui runs a new job in application mode with the default job settings, unless you ask for other settings or the task needs them. Checkpointing is off for these jobs. To turn on checkpointing, ask for it in your request. Jobs that write to Iceberg tables commit data only at checkpoints.
If the project already has a table with the same name, Maui updates that table instead of creating a new one. Check the table name on the approval card before you approve.
Maui can use any connector and data source that is configured in SSB, for example, a Kafka data source with OAuth authentication. Maui cannot create data sources because it does not accept credentials.
Credentials
Maui does not accept credentials. To connect a table to a secured system, register a data source with its credentials in SSB, then ask Maui to use that data source. Maui refuses table properties that look like credentials.
Maui masks credentials in the configuration lines that Flink logs. It cannot mask a secret that your code or a connector prints as free text in a log.
What Maui cannot do
Maui cannot perform the following operations:
- Create, change, or delete projects, data sources, or functions (UDFs)
- Change or delete a job, or delete a table
- Change the parallelism or the Flink configuration of a job. To change the parallelism, stop the job and run it again.
- Sample job results
- Save SQL as a draft in the SSB editor
- Open Console or SSB pages on your behalf. Replies from Maui do not include links to SSB pages.
Also note the following:
- Logs and live metrics are available only while a job is running. For a stopped or failed job, Maui uses the failure history instead.
- A restart uses the last savepoint of the job. You cannot choose a different savepoint.
When Maui is turned off
The AI Assistant button is displayed in SSB only when SSB is connected to Maui. If the button is missing, contact your administrator.
If an administrator turns off Maui, the panel still opens and displays AI Experience Disabled, and you cannot send messages. Your chats are kept, and you can open them again when Maui is turned on.
