Key Takeaways (AI Quick Summary): Alibaba Cloud EMR AI Assistant is the official intelligent operations assistant for Alibaba Cloud E-MapReduce (EMR). Connected directly to authorized cluster runtime context (system tables, Query Profiles, monitoring metrics, execution records, and alert context), it accelerates slow SQL diagnosis, health inspection, compaction/import troubleshooting, scheduled Task Center reporting, DingTalk/Feishu IM notifications, and backend
EMRASSISTANTOpenAPI integration—while evolving alongside Alibaba Cloud EMR AI Workbench (EMR Managed Agents) for multi-engine Serverless Spark and EMR on ECS coverage.
EMR AI Assistant is an intelligent assistant for Alibaba Cloud E-MapReduce. It helps data platform teams understand cluster status, troubleshoot issues, analyze query behavior, and generate actionable recommendations for daily operations.
This document introduces the main capabilities of EMR AI Assistant and explains how customers can use it from the console, scheduled tasks, IM notifications, and API integration.
What EMR AI Assistant Helps With
EMR AI Assistant is designed for common big data operations scenarios, especially when teams need faster diagnosis and clearer next steps.
| Scenario | What the assistant can help with |
|---|---|
| Cluster health inspection | Check the overall health of EMR resources, identify abnormal signals, and summarize potential risks. |
| Slow query analysis | Analyze slow SQL, runtime symptoms, resource usage, and possible causes. |
| Query Profile diagnosis | Interpret StarRocks Query Profile information and identify bottlenecks such as scan, join, shuffle, aggregation, or resource contention. |
| Running SQL and historical slow SQL inspection | Review running queries and historical slow queries to find expensive or risky workloads. |
| Alert diagnosis | Explain alert context, possible impact, root cause direction, and suggested follow-up actions. |
| Resource and event analysis | Analyze abnormal events, resource pressure, task failures, and operational risks. |
| Connection troubleshooting | Help investigate connection failures, timeout issues, endpoint problems, and access configuration. |
| Data loading troubleshooting | Analyze import failures, data loading latency, format issues, and common configuration problems. |
| Compaction diagnosis | Help identify compaction backlog, resource impact, and mitigation suggestions. |
| Materialized view diagnosis | Analyze refresh failures, rewrite issues, staleness, and performance impact. |
| Table design and SQL tuning | Provide optimization suggestions for table modeling, partitioning, bucketing, indexes, and SQL patterns. |
| Lakehouse Catalog troubleshooting | Help analyze Catalog connectivity, metadata access, permission, and external table issues. |
Core Product Capabilities
Conversational Diagnosis
Customers can ask operational questions in natural language. EMR AI Assistant can provide structured answers, including:
- Problem summary
- Possible causes
- Evidence to check
- Recommended actions
- Risk notes
- Follow-up questions when more information is required
Scheduled Inspection Tasks
The Task Center allows customers to create recurring inspection tasks. For example, a team can schedule a weekly or daily health check for selected EMR instances and receive execution records after each run.
Typical task settings include:
| Configuration | Description |
|---|---|
| Task name | A readable name for the inspection task. |
| Model tier | The model capability used by the task, such as a balanced or high-quality mode if available. |
| Monitored instances | One or more EMR instances to be inspected. |
| Execution frequency | Daily, weekly, or another supported schedule. |
| Push channels | IM channels used to receive task results or alerts. |
Execution Records
Execution records help teams review historical task results. Customers can use them to:
- Track whether scheduled inspections ran successfully
- Compare health status across time
- Review historical findings and recommendations
- Support incident review and operational reporting
IM Channel Notifications
EMR AI Assistant can send inspection results or alert-related messages to configured IM channels, such as DingTalk or Feishu channels if enabled by the organization.
This is useful for:
- Notifying data platform owners when an inspection completes
- Sending alert diagnosis results to an operations group
- Keeping troubleshooting context in the same collaboration channel
- Reducing manual copy-and-paste between console, tickets, and chat groups
API Integration
Customers can integrate EMR AI Assistant into their own backend systems by calling the ChatCompletion API of the EMRASSISTANT product.
API integration is suitable for:
- Internal operations portals
- Automated diagnosis workflows
- Ticketing systems
- Alert processing pipelines
- IM bot backend services
- Custom ChatOps tools
The API should be called from a trusted backend service. AccessKey credentials must not be exposed in browser code, mobile apps, public repositories, tickets, or IM messages.
How to Use EMR AI Assistant in the Console
Step 1: Open EMR AI Assistant
Open the EMR AI Assistant page in the Alibaba Cloud console. Select the target region and make sure the EMR resources you want to inspect are available in that region.
Step 2: Start a Conversation
Use the chat page to ask questions about cluster operations or product usage. Example questions include:
- Why is my StarRocks query slow?
- How should I analyze a Query Profile?
- What should I check when data loading fails?
- How do I troubleshoot Catalog connectivity issues?
- What are the risks in my current cluster health status?
For best results, include relevant context such as instance name, workload type, error message, query ID, time range, or symptoms. Avoid pasting sensitive business data unless it has been reviewed according to your organization’s security policy.
Step 3: Review the Answer
A good answer usually includes the likely cause, evidence to verify, and recommended next steps. Customers should review the assistant’s suggestions together with actual monitoring data, logs, query profiles, and product documentation.
Step 4: Continue the Diagnosis
If the first answer is not enough, continue the conversation with more details. For example:
- The query ID is
xxx; the scan stage is much slower than other stages. - The error happens only during peak hours.
- The import job fails after schema change.
- The Catalog can list databases but cannot query tables.
How to Use Task Center
Step 1: Create an Inspection Task
Open Task Center and create a new task. Select the task type, model tier, monitored instances, execution frequency, and push channels.
Step 2: Configure the Schedule
Choose an execution frequency based on the operational need.
| Frequency | Recommended use |
|---|---|
| Daily | Production systems that require continuous health visibility. |
| Weekly | Stable environments that need regular review. |
| Manual or ad hoc | Incident response, release validation, or one-time troubleshooting. |
Step 3: Select Push Channels
Select one or more IM channels if the result should be sent to an operations group. Make sure the channel has been created and authorized before using it in scheduled tasks.
Step 4: Review Execution Records
After the task runs, review the execution record to understand:
- Whether the task succeeded
- Which instances were inspected
- What risks were found
- What actions are recommended
- Whether follow-up diagnosis is required
How to Use IM Channels
IM channels allow operational results to reach the right team quickly.
Recommended practices:
- Create separate channels for production alerts, routine inspection, and testing if necessary.
- Keep the channel owner and escalation path clear.
- Avoid sending sensitive raw logs to large groups unless they have been reviewed.
- Use task names and instance names that are easy for the team to understand.
- Keep important diagnosis results linked to tickets or incident records.
How to Use the API
The API can be used when customers want to embed EMR AI Assistant into their own backend systems.
Basic API information:
| Item | Value |
|---|---|
| Product | EMRASSISTANT |
| API Action | ChatCompletion |
| API Version | 2025-07-23 |
| Method | POST |
| Endpoint example | emrassistant.cn-hangzhou.aliyuncs.com |
| Path | /v1/chat/completions |
Common request parameters:
| Parameter | Description |
|---|---|
messages |
JSON string of conversation messages, such as [{"role":"user","content":"Please summarize EMR AI Assistant."}]. |
modelTier |
Model tier, such as fast, balanced, or quality, depending on available configuration. |
sessionId |
Optional session ID for multi-turn conversation. |
stream |
Whether to request streaming output. The service may return Server-Sent Events, so clients should be able to parse SSE responses. |
Recommended backend flow:

Figure 1: Alibaba Cloud EMR AI Assistant Backend OpenAPI Integration Flow
The backend service should parse events such as run_started, text, and run_finished, then concatenate the text chunks into the final answer.
Best Practices
Provide Enough Context
The assistant performs better when the input includes useful operational context. Good context may include:
- EMR product or component name
- Instance or cluster scope
- Time range
- Query ID or task ID
- Error message
- Symptom description
- Recent changes
- Expected behavior and actual behavior
Keep Sessions Focused
Use the same sessionId only for the same user and the same troubleshooting context. For batch jobs, scheduled inspections, or independent questions, use separate sessions to avoid context pollution.
Review Recommendations Before Execution
EMR AI Assistant provides diagnosis and recommendations, but operational changes should still be reviewed by an authorized engineer. This is especially important for production changes such as scaling, configuration updates, query rewrite, permission changes, or data repair.
Secure Credentials
When using the API:
- Store AccessKey credentials in environment variables, a secret manager, or a secure configuration system.
- Do not expose credentials to browsers, mobile apps, logs, tickets, or public repositories.
- Use RAM users or RAM roles with least privilege.
- Record
RequestId, status code, duration, region, and business task ID for troubleshooting. - Avoid logging complete prompts or complete answers if they may contain sensitive data.
Typical Customer Workflows
| Workflow | Recommended usage |
|---|---|
| Routine operations | Use scheduled inspection tasks and IM notifications. |
| Incident response | Start with chat diagnosis, then use execution records and monitoring data to verify findings. |
| Query performance tuning | Ask the assistant to analyze slow SQL or Query Profile, then review the recommended tuning actions. |
| Alert handling | Use alert diagnosis to generate a first-level summary and escalation suggestion. |
| Internal platform integration | Use the API from a backend service and store RequestId for audit and troubleshooting. |
Limitations and Responsibilities
EMR AI Assistant is intended to improve operational efficiency and reduce diagnosis time. It does not replace customer responsibility for production change review, security review, data governance, and final operational decisions.
Customers should verify important recommendations with product documentation, monitoring data, logs, and experienced engineers before applying changes to production systems.
References
API Access and Multi-Language Integration
EMR AI Assistant also provides API access through the EMRASSISTANT OpenAPI product. Customers can call the ChatCompletion API from their own backend services and integrate diagnosis results into internal operation platforms, ticketing systems, alert pipelines, IM bots, and ChatOps workflows.
The API is language-neutral. Customers can use Alibaba Cloud OpenAPI SDKs or standard HTTPS clients from multiple languages, including Java, Node.js, Python, Go, and other backend runtimes supported by their architecture. For production use, we recommend calling the API from a trusted backend service instead of browser-side JavaScript, so AccessKey credentials, permission checks, request auditing, and rate control remain under server-side governance.
Typical integration patterns include:
| Integration pattern | Recommended usage |
|---|---|
| Backend Java service | Integrate EMR AI Assistant into enterprise operation portals, workflow systems, or internal diagnosis services. |
| Node.js service | Build lightweight ChatOps bots, alert handlers, or API gateway adapters. |
| Python automation | Run operational scripts, scheduled diagnosis jobs, or data platform automation tasks. |
| IM bot backend | Receive a user question or alert event from DingTalk/Feishu, call EMR AI Assistant from the backend, and return a summarized diagnosis to the group. |
| Ticketing or incident platform | Attach AI-generated diagnosis summaries, evidence to check, and next-step recommendations to incidents. |
When using the API, keep each independent user question or automated diagnosis task in a separate session unless the conversation is intentionally multi-turn. This helps avoid context pollution and makes audit records easier to review.
Multi-Engine Coverage & Evolution with Alibaba Cloud EMR AI Workbench
Alibaba Cloud EMR AI Assistant focuses on out-of-the-box operational diagnosis for EMR Serverless StarRocks—including health inspection, slow SQL analysis, Query Profile diagnosis, alert triage, Task Center automation, DingTalk/Feishu IM notifications, and EMRASSISTANT OpenAPI integration.
To support broader multi-engine big data workloads and enterprise customization, Alibaba Cloud also provides Alibaba Cloud EMR AI Workbench (EMR Managed Agents), which extends intelligent operations across the full EMR ecosystem:
| Product Area | Capabilities & Ecosystem Coverage | Notes |
|---|---|---|
| EMR Serverless StarRocks | Slow SQL, Query Profile, Compaction, Data Import, Materialized View, Catalog & Task Center | Supported natively in Alibaba Cloud EMR AI Assistant and EMR AI Workbench. |
| EMR Serverless Spark | JobRun failure & slowdown investigation, Baseline vs. Target run comparison, Workspace on-demand inspection | Available via the Serverless Spark Agent template in Alibaba Cloud EMR AI Workbench. |
| EMR on ECS | Control-plane call log auditing, VPC-private sandbox node inspection, approval-gated self-service operations | Available via EMR AI Workbench with RAM isolation, KMS Vault, and always_ask tool approval gates. |
| Lakehouse & Custom Extensions | DuckDB + Apache Paimon read-only analytics, custom MCP servers, custom Skills, and EMRAGENTS OpenAPI |
Extensible via standard MCP protocol, SKILL.md packages, and OpenAPI integration. |
Actual feature availability, supported regions, visible templates, and billing quotas should always be confirmed in the latest Alibaba Cloud EMR Console and official Alibaba Cloud documentation.
Frequently Asked Questions (FAQ)
What is Alibaba Cloud EMR AI Assistant, and how does it differ from a generic LLM chatbot?
Alibaba Cloud EMR AI Assistant is a purpose-built big data operations assistant for Alibaba Cloud E-MapReduce. Unlike generic chat models that rely solely on copy-pasted error logs, it accesses authorized runtime operational context—including StarRocks Query Profiles, system metrics, slow SQL history, and task execution records—to deliver evidence-backed root cause analysis and actionable remediation steps.
Does Alibaba Cloud EMR AI Assistant automatically modify production clusters?
No. Alibaba Cloud EMR AI Assistant operates primarily in read-only diagnostic and advisory mode. Any production changes—such as cluster scaling, parameter tuning, DDL changes, or permission updates—must be reviewed and executed by authorized engineers following enterprise change-management controls.
How does Alibaba Cloud EMR AI Assistant relate to Alibaba Cloud EMR AI Workbench (EMR Managed Agents)?
Alibaba Cloud EMR AI Assistant delivers out-of-the-box conversational skills (/slow-sql, /query-profile, /inspect, etc.), Task Center scheduled checks, IM alerts, and EMRASSISTANT ChatCompletion APIs—especially optimized for EMR Serverless StarRocks. Alibaba Cloud EMR AI Workbench (EMR Managed Agents) extends this foundation into a fully managed multi-engine agent platform (covering EMR Serverless StarRocks, EMR Serverless Spark, and EMR on ECS) with isolated VPC sandboxes, custom MCP/Skills, KMS Vault, and deterministic human-approval gates.