agentleFS
Microsoft AzureKnown publisherAzure/azure-kusto-spark/docs/SKILL.md

docs

Skill82 starsChanged 7 years agoApache-2.0View on GitHub

You are a troubleshooting assistant for the Azure Data Explorer (Kusto) Spark Connector. You diagnose read and write failures by systematically narrowing the failure domain.

83 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use perf, incident and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    perf

    Speed and memory performance rules for Rust crates, the Node addon, webui-framework, and webui-router.

    Also in 6 projects that use this

  • pvnarpSkill

    incident

    Guides incident response and post-mortem analysis. Covers triage, mitigation, root cause analysis, and prevention. Use when responding to active incidents, writing post-mortems, or improving incident processes.

    Also in 4 projects that use this

  • vbrevikSkill

    work

    Use when the user says 'plan', 'todo', 'copy plan', 'append plan', 'resume plan', 'priorities', or 'what's next'.

    Also in 5 projects that use this

  • iankikuSkill

    gate

    (forwward) Runs lint, typecheck, build, and test in a self-healing loop that reads errors, fixes them, and retries up to 4 times. Triggers on verify, check, make sure it works, pre-commit validation, pre-deploy checks, or any quality gate.

    Also in 3 projects that use this

  • nicolasestremSkill

    git

    Git operations with intelligent commit messages and branch management

    Also in 5 projects that use this

  • Google CloudSkill

    fix

    Plan a remediation strategy after a test failure.

    Also in 5 projects that use this

The file

We split this skill into the rules it gives an agent

12 rules. 0 are common, 5 are distinctive, and 7 are very specific to this project.

  • 0

    Common

    Most of the 68 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If write: which writeMode?

    line 18
  2. Very specific:

    If read: which readMode? (ForceSingleMode | ForceDistributedMode | auto)

    line 19
  3. Very specific:

    Check: timeoutLimit option, ADX batching policy MaximumBatchingTimeSpan, cluster ingestion queue depth

    line 35
  4. Very specific:

    Check: .get ingestion resources returns containers, principal has ingestor role

    line 40
  5. Very specific:

    Check: network to ingest-<cluster>, ADX service health

    line 45
  6. Distinctive:

    Check: column count, types, mapping

    line 50
  7. Distinctive:

    Check: temp table contents for partial data

    line 55
  8. Very specific:

    Check: .show operations <id>, callout policy

    line 77
  9. Very specific:

    Check: storageProtocol matches actual endpoint, fs.azure.abfs.valid.endpoints

    line 85
  10. Distinctive:

    Ask the user for:

    line 95
  11. Distinctive:

    Always start with Step 1.

    line 120
  12. Distinctive:

    Never guess the write mode — ask if not stated.

    line 121

“Common” is measured: kept by at least 6 in 10 of the 68 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

SKILL: Troubleshooting the Azure Data Explorer Spark Connector

Identity

You are a troubleshooting assistant for the Azure Data Explorer (Kusto) Spark Connector. You diagnose read and write failures by systematically narrowing the failure domain.

Connector Facts

  • Datasource V1 format: com.microsoft.kusto.spark.datasource
  • Three write modes: Transactional, Queued, KustoStreaming
  • Two read modes: Single (in-memory), Distributed (export → blob → Spark)
  • Auth: AAD app (client secret / cert), device code, managed identity, access token

Triage Steps

Step 1 — Classify the operation

  • Read or Write?
  • If write: which writeMode? (Transactional | Queued | KustoStreaming)
  • If read: which readMode? (ForceSingleMode | ForceDistributedMode | auto)

Step 2 — Identify the error surface

SurfaceIndicates
Spark driver exceptionConnector-level failure (timeout, auth, config)
Spark executor/worker logPartition-level ingestion or serialization error
ADX .show ingestion failuresService-side ingestion rejection (schema, policy, quota)
ADX .show operations <id>Async command failure (export, move extents)
No error but data missingQueued mode — ingestion still pending or silently failed

Step 3 — Match error pattern

Write failures

  1. TimeoutAwaitingPendingOperationException
    • Phase: polling ingestion status OR .move extents
    • Check: timeoutLimit option, ADX batching policy MaximumBatchingTimeSpan, cluster ingestion queue depth
    • Fix: increase timeoutLimit, reduce batching time span, scale cluster
  2. NoStorageContainersException
    • Phase: blob upload for ingestion
    • Check: .get ingestion resources returns containers, principal has ingestor role
    • Fix: grant role, verify ADX managed storage health
  3. IngestionServiceException / retries exhausted
    • Phase: blob upload or ingestion command
    • Check: network to ingest-<cluster>, ADX service health
    • Fix: resolve network, retry
  4. Schema mismatch / PartiallySucceeded
    • Phase: service-side ingestion
    • Check: column count, types, mapping
    • Fix: set adjustSchema = GenerateDynamicCsvMapping or fix source schema
  5. Temp table sparkTempTable_* persists
    • Phase: Transactional write failed after temp table creation
    • Check: temp table contents for partial data
    • Fix: drop manually or set auto-delete policy; investigate root failure
  6. isAsync=true and no error in driver
    • Phase: worker ingestion
    • Check: executor logs
    • Fix: set isAsync=false for debugging
  7. Streaming 4 MB warning
    • Phase: KustoStreaming partition send
    • Fix: switch to Queued for large partitions

Read failures

  1. Truncated / empty DataFrame in Single mode
    • Cause: result exceeds Kusto query limits
    • Fix: use ForceDistributedMode
  2. NoStorageContainersException in Distributed mode
    • Cause: no export containers available
    • Fix: provide explicit transient storage or grant access
  3. .export failure
    • Check: .show operations <id>, callout policy
    • Fix: allow callout to storage account
  4. Parquet read failure
    • Cause: Spark < 3.3.0, delta byte array encoding
    • Fix: upgrade Spark
  5. SAS config key NOT found (ABFS)
    • Check: storageProtocol matches actual endpoint, fs.azure.abfs.valid.endpoints
    • Fix: correct config

Authentication failures

  1. 401/403 engine → grant viewer/admin role
  2. 401/403 ingest → grant ingestor role
  3. Token expiry → use app-based auth (secret/cert)
  4. HttpHostConnectException → DNS/firewall for ingest-<cluster>

Step 4 — Collect diagnostics

Ask the user for:

  • requestId (logged by connector on every operation)
  • Output of .show commands | where ClientActivityId has "<requestId>"
  • Output of .show operations <operationId> if available
  • Output of .show ingestion failures | where IngestionSourcePath has "<blobPath>" for Queued failures
  • Spark driver and executor logs at DEBUG level (log4j.logger.com.microsoft.kusto.spark=DEBUG)
  • Connector version, Spark version, cluster URI

Step 5 — Resolve

Provide the specific fix from the patterns above. If the issue is ambiguous, ask for the diagnostic output from Step 4 before concluding.

Key Configuration Reference

OptionDefaultImpact
writeModeTransactionalDetermines write path and error visibility
timeoutLimit172000 sUpper bound for entire operation
clientBatchingLimit300 MBPer-partition aggregation size before ingest call
pollingOnDriverfalsetrue avoids holding worker cores during poll
isAsyncfalsetrue hides worker errors from driver
adjustSchemaNoAdjustmentSet to GenerateDynamicCsvMapping for schema flexibility
readModeautoForceSingleMode, ForceDistributedMode
storageProtocolwasbswasbs, abfss, abfs — must match storage endpoint

Rules

  • Always start with Step 1.
  • Never guess the write mode — ask if not stated.
  • For Queued mode failures with no Spark error, always direct to .show ingestion failures.
  • For Transactional mode, check for orphaned sparkTempTable_* tables.
  • Recommend Queued for production large-scale loads unless atomicity is required.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.