Area: Product Issues
Sub-Area: Remote Executor Configuration
Applies to: Cloud
Issue
You want to remove a Remote Executor Pool you no longer use. The pool list under Data Sources > Executors has no delete option.
You Might Be Asking
- How do I delete a Remote Executor Pool in DataHub Cloud?
- Why is there no delete button for Remote Executor Pools in the UI?
- Is there a GraphQL mutation or API to delete a pool?
Cause
The DataHub Cloud UI and GraphQL API can't delete a pool. The UI can create a pool, edit its description and make it the default. The GraphQL API has only three pool mutations: createRemoteExecutorPool, updateRemoteExecutorPool and updateDefaultRemoteExecutorPool. There is no deleteRemoteExecutorPool mutation. If you send one, GraphQL rejects the request with a validation error.
To remove a pool, contact DataHub Support.
Solution
Prepare the pool first, then ask DataHub Support to remove it.
- Find the pool and the sources that use it. In Data Sources > Executors, the Used by column shows how many ingestion sources use each pool. Click the count to see the sources. You can also query the GraphQL API at
/api/graphqlon your DataHub Cloud URL, for examplehttps://<your-company>.acryl.io/api/graphql. Send an access token in the headerAuthorization: Bearer <access-token>(see How To Set Up GraphQL). You need the Manage Metadata Ingestion privilege to list pools.
query {
listRemoteExecutorPools(input: { start: 0, count: 50 }) {
total
remoteExecutorPools {
urn
executorPoolId
description
isDefault
ingestionSources(input: { start: 0, count: 100, hideSystemSources: true }) {
total
ingestionSources {
urn
name
}
}
}
}
}
Pool URNs have the form urn:li:dataHubRemoteExecutorPool:<pool-id>.
- Move every ingestion source off the pool. Edit each source and pick a different Executor Pool in its advanced settings. See Assigning Ingestion Sources to an Executor Pool.
- If the pool is the default pool, make another pool the default. In Data Sources > Executors, click Make Default on the other pool. New ingestion sources use the default pool.
- Stop the Remote Executors you deployed for this pool in your own environment (ECS, Kubernetes or Docker).
- Contact DataHub Support and ask them to remove the pool. Include your DataHub Cloud URL and the pool ID (
executorPoolId) or pool URN, for exampleurn:li:dataHubRemoteExecutorPool:my-old-pool. Say that you moved its ingestion sources, changed the default pool if needed and stopped its executors. - When Support tells you the pool is removed, refresh Data Sources > Executors and check that the pool is gone.