AWS emr: Spark troubleshooting agent doc: wording fixes and Regions list
Summary
Minor grammar/capitalization edits, updated MCP permissions link anchor, added Available Regions section, and clarified CloudWatch Logs as a log source.
Security assessment
The diff only rephrases existing security-adjacent text (MCP condition keys, data-masking guardrails) and updates a link anchor; it does not address a vulnerability or add new security guidance. The only substantive addition is a list of available AWS Regions, which is non-security.
Evidence
Requests made through the server carry the condition keys `aws:ViaAWSMCPService` and `aws:CalledViaAWSMCP`. You can use these keys to scope what the agents can do. For more information, see [How can I get more fine-grained control over the agents' permissions?](./spark-troubleshooting-agent-iam-setup.html#qa-fine-grained-permissions).
Diff
diff --git a/emr/latest/ReleaseGuide/spark-troubleshoot.md b/emr/latest/ReleaseGuide/spark-troubleshoot.md index dafa25d..59732b8 100644 --- a//emr/latest/ReleaseGuide/spark-troubleshoot.md +++ b//emr/latest/ReleaseGuide/spark-troubleshoot.md @@ -7 +7 @@ -ArchitectureToolsFeature list for each agentPricing +ArchitectureToolsFeature list for each agentPricingAvailable Regions @@ -24 +24 @@ The following diagram shows how the Apache Spark agents work. The numbers show t - + @@ -26 +26 @@ The following diagram shows how the Apache Spark agents work. The numbers show t -You start by asking about your job run in natural language (1) from an MCP client in your development environment, or by choosing the **Analyze with AI** button in the console (2). An MCP client connects through the [MCP Proxy for AWS](https://github.com/aws/mcp-proxy-for-aws). The proxy runs on your machine, signs each request with SigV4 using the credentials from your AWS CLI profile, and forwards it to the Amazon SageMaker Unified Studio remote MCP server. The remote MCP server reads your job run data (3), analyzes it (4), and returns recommendations with explanations (6). +You start by asking about your job run in natural language (1) from an MCP client in your development environment, or by choosing the **Analyze with AI** button in the console (2). An MCP client connects through the [MCP Proxy for AWS](https://github.com/aws/mcp-proxy-for-aws). The proxy runs on your machine, signs each request with SigV4 using the credentials from your AWS CLI profile, and forwards it to the Amazon SageMaker Unified Studio remote MCP server. The remote MCP server reads your job run data (3), analyzes it (4), proposes code fixes for failed runs when the issue is in your code (5), and returns recommendations with explanations (6). @@ -34 +34 @@ For each request, the remote MCP server uses short-lived credentials for your id -Requests made through the server carry the condition keys `aws:ViaAWSMCPService` and `aws:CalledViaAWSMCP`. You can use these keys to scope what the agents can do. For more information, see [Condition keys for MCP server requests](./spark-troubleshooting-agent-iam-setup.html#spark-troubleshooting-agent-mcp-permissions-change). +Requests made through the server carry the condition keys `aws:ViaAWSMCPService` and `aws:CalledViaAWSMCP`. You can use these keys to scope what the agents can do. For more information, see [How can I get more fine-grained control over the agents' permissions?](./spark-troubleshooting-agent-iam-setup.html#qa-fine-grained-permissions). @@ -51 +51 @@ Each agent adds its own checks, some of which are described in the following sec -### Troubleshooting Agent +### Troubleshooting agent @@ -53 +53 @@ Each agent adds its own checks, some of which are described in the following sec -The Troubleshooting Agent runs on failed runs on EMR on EC2, EMR Serverless, EMR on EKS, and AWS Glue. +The troubleshooting agent runs on failed runs on Amazon EMR on EC2, EMR Serverless, EMR on EKS, and AWS Glue. @@ -61 +61 @@ The agent reads evidence about the failed run from your platform: - * **EMR Serverless** – Driver and executor logs from Amazon S3, and the Spark History Server. + * **EMR Serverless** – Driver and executor logs from Amazon S3 or Amazon CloudWatch Logs, and the Spark History Server. @@ -74 +74 @@ On every platform, the agent also reads the run's Spark configuration and extrac -A fast classification pass first identifies the type of error. For well-understood error types, deterministic rules drive the analysis directly. Otherwise, the agent retrieves matching guidance from its curated Spark troubleshooting knowledge base and generates the root cause and recommended fixes. +Deterministic rules drive the analysis, along with relevant guidance that the agent retrieves from its curated Spark troubleshooting knowledge base. The agent then generates the root cause and recommended fixes. @@ -82 +82 @@ Code recommendations apply to code-related errors in PySpark jobs. -The tool maps the parts of your script that are relevant to the error, applies fix guidance specific to the error type, and proposes code changes, along with `spark-submit` argument changes when they're needed. These are proposals only. The tool doesn't apply them. +The tool maps the parts of your script that are relevant to the error, applies fix guidance specific to the error type, and proposes code changes, along with `spark-submit` argument changes when they're needed. These are proposals only. The tool does not apply them. @@ -84 +84 @@ The tool maps the parts of your script that are relevant to the error, applies f -Code recommendations add their own guardrails. For example, sensitive data in your script and stack trace is masked before it reaches the model, and then restored in the proposed changes so that they're usable. A content guardrail also runs on code generation. +Code recommendations add their own guardrails. For example, sensitive data in your script and stack trace is masked before it reaches the model, then restored in the proposed changes so they're usable. A content guardrail also runs on code generation. @@ -88 +88 @@ For more information, see [Apache Spark Troubleshooting Agent for Amazon EMR and -### Optimization Agent +### Optimization agent @@ -90 +90 @@ For more information, see [Apache Spark Troubleshooting Agent for Amazon EMR and -The Optimization Agent runs only on successful runs on EMR Serverless and AWS Glue. +The optimization agent runs only on successful runs on Amazon EMR Serverless and AWS Glue. @@ -117 +117 @@ The agent combines the following to produce recommendations: - * **Intent** – Your goal, cost or performance, comes from your prompt. A cost goal means lowering what the run costs to execute, and a performance goal means speeding up runtime. If you don't state a goal, the agent optimizes for performance. With a baseline and no stated goal, the agent uses whichever metric regressed. Intent-based models use your goal to decide which recommendations are allowed and how capacity is sized. + * **Intent** – Your goal, cost or performance, comes from your prompt. A cost goal means lowering what the run costs to execute, and a performance goal means speeding runtime. If you don't state a goal, the agent optimizes for performance. With a baseline and no stated goal, the agent uses whichever metric regressed. Intent-based models use your goal to decide which recommendations are allowed and how capacity is sized. @@ -136 +136 @@ Before the agent returns results, deterministic rules drop or adjust recommendat - * They ensure that each recommendation is valid for the platform that it's for. + * They ensure that each recommendation is valid for the platform it's for. @@ -143 +143 @@ You get back a summary, prioritized recommendations tagged `[config]`, `[infra]` -The Optimization Agent doesn't support code recommendations through the `spark_code_recommendation` tool. +The optimization agent doesn't support code recommendations through the `spark_code_recommendation` tool. @@ -154 +154 @@ Tool| MCP server| Used by -`spark_code_recommendation`| `sagemaker-unified-studio-mcp-code-rec`| Troubleshooting Agent only +`spark_code_recommendation`| `sagemaker-unified-studio-mcp-code-rec`| Troubleshooting agent only @@ -168 +168 @@ Code recommendations| Yes| No -Entry points| MCP clients, the **Troubleshoot with AI** button (EMR on EC2 and EMR on EKS consoles), the **Analyze with AI** button (EMR Serverless and AWS Glue consoles), and the notebook **Fix with AI** button| MCP clients and the **Analyze with AI** button (EMR Serverless and AWS Glue consoles) +Entry points| MCP clients, the **Troubleshoot with AI** button (EMR on EC2 and EMR on EKS consoles), the **Analyze with AI** button (EMR Serverless and AWS Glue consoles), and the notebook **Fix with AI** button| MCP clients, the **Analyze with AI** button (EMR Serverless and AWS Glue consoles), and the notebook **Fix with AI** button @@ -172 +172,22 @@ Entry points| MCP clients, the **Troubleshoot with AI** button (EMR on EC2 and E -The Apache Spark agents are available at no additional cost as part of Amazon EMR and AWS Glue. The agents provide analysis and recommendations. You pay only for the Amazon EMR or AWS Glue resources that you use, including any runs that you start to validate a recommended change. +The Apache Spark agents are available at no additional cost as part of Amazon EMR and AWS Glue. The agents provide analysis and recommendations. You pay only for the Amazon EMR or AWS Glue resources that you use, including any runs you start to validate a recommended change. + +## Available Regions + +The Apache Spark agents are available in the following Regions: + + * **Asia Pacific** : Tokyo (ap-northeast-1), Seoul (ap-northeast-2), Singapore (ap-southeast-1), Sydney (ap-southeast-2), Mumbai (ap-south-1), Osaka (ap-northeast-3), Hong Kong (ap-east-1), Taipei (ap-east-2), Hyderabad (ap-south-2), Jakarta (ap-southeast-3), Melbourne (ap-southeast-4), Malaysia (ap-southeast-5), New Zealand (ap-southeast-6), and Thailand (ap-southeast-7) + + * **North America** : Canada (ca-central-1), Calgary (ca-west-1), and Mexico (mx-central-1) + + * **Europe** : Stockholm (eu-north-1), Ireland (eu-west-1), London (eu-west-2), Paris (eu-west-3), Frankfurt (eu-central-1), Zurich (eu-central-2), Milan (eu-south-1), and Spain (eu-south-2) + + * **Middle East** : Tel Aviv (il-central-1) + + * **Africa** : Cape Town (af-south-1) + + * **South America** : São Paulo (sa-east-1) + + * **United States** : N. Virginia (us-east-1), Ohio (us-east-2), Oregon (us-west-2), and N. California (us-west-1) + + +