/oracle-ai-data-platform-workbench-databricks-migrator:aidp-bucket-mappingfrom oracle-ai-data-platform-workbench-databricks-migrator
Configures the s3:// to oci:// bucket/namespace mapping used by the migrator to rewrite paths during notebook and catalog migration. Use when external tables or files at s3:// paths need to land on OCI Object Storage, check_data_availability reports s3:// paths as NOT FOUND, or the DDL rewriter logs an R02_BUCKET_UNMAPPED warning.
Ships in oracle-ai-data-platform-workbench-databricks-migrator. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
aidp-bucket-mapping — wire up s3:// ↔ oci://Several places in the migrator look up s3://<bucket>/<path> and rewrite to oci://<bucket>@<namespace>/<path>:
aidp-migrate-catalog rewrites external-table LOCATION clauses.aidp-migrate-job Pass-1 rewrites spark.read.parquet("s3://...") literals in notebook cells.aidp-check-data probes paths via the same translation.All consult the same bucket-mapping config.
R02_BUCKET_UNMAPPED warning from the DDL rewriter, or a data-check probe that can't translate an s3:// path).The migrator loads bucket mappings via the load_bucket_mapping() helper (engine/scripts/context_tools.py). The customer supplies a 3-column CSV — NOT JSON:
s3_bucket,oci_bucket,oci_namespace
<s3-bucket-name>,<oci-bucket-name>,<oci-namespace>
<another-s3-bucket>,<another-oci-bucket>,<oci-namespace>
| Column | Meaning |
|---|---|
s3_bucket | Source S3 bucket name (no s3:// prefix). |
oci_bucket | Target OCI Object Storage bucket. |
oci_namespace | OCI tenancy namespace (NOT the DataLake namespace — these can differ). |
The path comes from bucket_mapping.path in the customer YAML (--config); --bucket-mapping <path> is the per-run override, and the legacy fallback is config/bucket_map.csv in the engine. migrate_catalog.py takes the same CSV via --bucket-map <path>. Save the file to a path the user controls (gitignored — it contains tenancy-specific identifiers).
If the user is doing this for the first time:
List the source S3 buckets referenced in the Databricks workspace. Quick way:
# On the migrator repo:
grep -roE 's3://[a-z0-9.-]+' <source-databricks-checkout>/ | sort -u
Or use the migrator's prep helper if available.
For each, identify the target OCI bucket + namespace. Either:
Find the OCI namespace. Each OCI tenancy has ONE namespace per region — find it via:
oci os ns get --profile <profile>
# returns: {"data": "<your-namespace>"}
Write the CSV and point bucket_mapping.path in the customer YAML at it (the engine's legacy fallback location is config/bucket_map.csv). Make sure it's gitignored.
Test the mapping by re-running aidp-check-data with --bucket-mapping <path>. Any MISSING entries with s3://... paths now resolve to oci://... and probe correctly.
Behavior contract — unknown buckets are surfaced, not rejected:
migrate_catalog.py does NOT reject an unknown bucket: the rewriter leaves the original s3:// LOCATION unchanged in the emitted DDL and records an R02_BUCKET_UNMAPPED warning in the rule-application audit (visible in --out-report / --dry-run output). Review every such warning — a replayed table pointing at s3:// will fail at first read on AIDP.job_migrate.py Pass-1/2 surfaces the bucket mapping to the model's fix context so it can translate paths or ask; an untranslatable path fails at execute time, loudly.check_data_availability* can't translate the path, so the probe reports it NOT FOUND (with fuzzy suggestions when a near-match exists).If you see R02_BUCKET_UNMAPPED warnings but the replay continues, the DDL kept the untranslated s3:// path — confirm the consumer notebook either no longer reads that path OR add the mapping and re-run.
| Mistake | Fix |
|---|---|
| Confusing DataLake namespace vs OCI tenancy namespace | These can differ. oci_namespace in the mapping is the TENANCY namespace (oci os ns get), not the DataLake's internal namespace. |
Hardcoding bucket names that include s3:// prefix | Don't include s3:// — just the bucket name. |
Forgetting to pass --bucket-mapping <path> to subsequent invocations | The path is per-run, not persisted. Add it to your aidp-migrate-job / aidp-migrate-catalog invocations. |
| Listing buckets the user doesn't actually have read access to | The mapping resolves the name; access errors surface at first read. Don't pre-mock buckets the user can't touch. |
aidp-check-data — any MISSING rows that were due to bucket-map issues should now be OK.aidp-migrate-job / aidp-migrate-catalog.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (oracle-samples/oracle-aidp-samples) — no native marketplace selected
npx claudepluginhub p/oracle-samples-oracle-ai-data-platform-workbench-databricks-migrator-ai-claude-code-plugins-oracle-ai-data-platform-workbench-databricks-migratorNone: SKILL.md is the whole skill.
11 skills in this plugin
/aidp-acceptance-contractManifest-declared acceptance contract for batch and streaming pipelines that need convergence verification, not just "no exceptions". Declares PASS only after K consecutive zero-result windows (consecutive-zero-window convergence). Use for streaming jobs, slowly-draining backfills, or any pipeline whose success is "the pending queue is empty"./aidp-build-dagBuild a migration manifest (the execution DAG) from an AIDP workflow (exported from Databricks by dbx_export). Walks %run dependency chains, captures dbutils.notebook.run invocations, and emits reports/<job>_manifest.json — the input every other execute-skill consumes. Use when the user wants to see what would migrate, or before invoking aidp-migrate-job for the first time on a new workload./aidp-check-dataPre-migration data-availability scan. Reads every notebook in a migration manifest, extracts every spark.read.table / spark.read.parquet / saveAsTable reference, and probes whether each target schema/table/path exists on the AIDP cluster BEFORE you spend Pass-2 cluster time. Use after aidp-build-dag and before aidp-migrate-job, especially the first time you migrate against a target environment./aidp-dbx-exportExport a Databricks job into AIDP — notebooks, JARs, init scripts, workflow + cluster specs — via python3 -m dbx_export. Three phases (discover+download → upload → clusters+workflow) with AIDP-first dependency resolution. Artifacts are copied, NOT code-migrated; the migration itself comes later. Use FIRST, before aidp-build-dag / aidp-migrate-job, whenever the workload still lives only in Databricks./aidp-fixup-cellTargeted rewind of a migrated notebook. Re-executes cells from history index N onwards (or a specific cell range) through the execute+verify+fix loop, with a 'why' reason injected so Claude knows what to fix. Use when aidp-migrate-job left a notebook at RESULT=PARTIAL or the user identifies a specific cell that is wrong post-migration./aidp-migrate-catalogMigrate Databricks Unity Catalog / HMS schemas + tables onto AIDP. Two-stage extract→rewrite→replay pipeline. The rewriter applies 10 implemented DDL rules (3-part→2-part flatten, s3://→oci:// via bucket-map, source-format preserved (Delta stays Delta) with delta.* property scrub, MV/streaming rejection, CREATE SCHEMA COMMENT-colon strip). Batched single-WebSocket DDL replay works around AIDP's per-statement-discard quirk. Use BEFORE aidp-migrate-job — schemas must exist before notebook reads.Other plugins' skills for the same job