Area: API Issues
Sub-Area: Remote Executor Pool Management
Applies to: Cloud
Issue
You created Remote Executor Pools in DataHub Cloud and now want to remove one. For example, you replaced a pool with a better named one, or you retired an old executor. The Executors tab under Data Sources has no delete button for pools.
You Might Be Asking
- How do I delete a Remote Executor Pool in DataHub Cloud?
- Is there a delete button for executor pools in the DataHub UI?
- Can I rename a pool instead of creating a new one?
- Can I get a pool back after I delete it?
Cause
The DataHub Cloud UI and GraphQL API can't delete a pool. GraphQL has no deleteRemoteExecutorPool mutation, and no other pool mutation deletes a pool. GraphQL supports listing pools, getting one pool, creating a pool, updating a pool and setting the Default Pool. An update changes only the pool's description (or reprovisions a pool whose provisioning failed). You can't rename a pool, because the Pool Identifier is part of the pool's URN.
The OpenAPI v3 API has a delete endpoint for every entity type, including pools. You call it from the Swagger UI, as described in the OpenAPI Guide.
Solution
If you want to rename or replace a pool
You can't rename a pool. Create a new pool, move everything to it, then delete the old pool:
- Go to Data Sources > Executors and click Create. Enter the new Pool Identifier and click Create. See Creating and Managing Executor Pools.
- Deploy your Remote Executors with the new Pool ID, or update your existing deployment to use it. In the Helm chart this is
global.datahub.executor.pool_id. In Docker it is theDATAHUB_EXECUTOR_POOL_IDenvironment variable. See Deploying Remote Executors in Your Environment. - Check the Executors tab. The executors now report under the new pool.
- Follow the steps below to move your ingestion sources and the Default Pool, and to delete the old pool.
Before you delete
Deleting a pool is a hard delete. It removes the pool permanently. You can't restore it. If you need it again, create a new pool with the same Pool Identifier. Do these steps first:
- Edit each ingestion source that uses the pool and select a different Executor Pool. See Assigning Ingestion Sources to an Executor Pool.
- If the pool is the Default Pool, click Make Default on another pool in the Executors tab.
- Stop every Remote Executor that still runs with this pool ID.
Delete the pool
- Open the Swagger UI for your instance:
https://<your-company>.acryl.io/openapi/swagger-ui/index.html
You can also open it from the Resources menu in the navigation sidebar. Click OpenAPI. See the OpenAPI Guide.
- In the definition selector at the top of the page, choose 1. DataHub v3 (OpenAPI).
- Expand the section named dataHubRemoteExecutorPool Entity.
- Open the operation DELETE /openapi/v3/entity/datahubremoteexecutorpool/{urn} and click Try it out.
- In the
urnfield, enter the URN of the pool. The format is:
urn:li:dataHubRemoteExecutorPool:<pool-identifier>
For example, a pool with the Pool Identifier my-ecs-executor has this URN:
urn:li:dataHubRemoteExecutorPool:my-ecs-executor
- Leave the
clearandaspectsparameters empty. If you fill them in, the call removes only some of the pool's data and the pool stays in place. - Click Execute. A
200response means the delete succeeded. - Go to Data Sources > Executors and refresh the page. The pool no longer appears.