{"record":{"id":"fc18f6ddc123aad8","repo":"apache/flink","slug":"gpu-discovery-script-s-is-not-configured","errorCode":null,"errorMessage":"GPU discovery script ('%s') is not configured.","messagePattern":"GPU discovery script \\('(.+?)'\\) is not configured\\.","errorType":"validation","errorClass":"IllegalConfigurationException","httpStatus":null,"severity":"error","filePath":"flink-external-resources/flink-external-resource-gpu/src/main/java/org/apache/flink/externalresource/gpu/GPUDriver.java","lineNumber":66,"sourceCode":"import static org.apache.flink.externalresource.gpu.GPUDriverOptions.DISCOVERY_SCRIPT_PATH;\n\n/**\n * Driver takes the responsibility to discover GPU resources and provide the GPU resource\n * information. It retrieves the GPU information by executing a user-defined discovery script.\n */\nclass GPUDriver implements ExternalResourceDriver {\n\n    private static final Logger LOG = LoggerFactory.getLogger(GPUDriver.class);\n\n    private static final long DISCOVERY_SCRIPT_TIMEOUT_MS = 10000;\n\n    private final File discoveryScriptFile;\n    private final String args;\n\n    GPUDriver(Configuration config) throws Exception {\n        final String discoveryScriptPathStr = config.get(DISCOVERY_SCRIPT_PATH);\n        if (StringUtils.isNullOrWhitespaceOnly(discoveryScriptPathStr)) {\n            throw new IllegalConfigurationException(\n                    String.format(\n                            \"GPU discovery script ('%s') is not configured.\",\n                            ExternalResourceOptions.genericKeyWithSuffix(\n                                    DISCOVERY_SCRIPT_PATH.key())));\n        }\n\n        Path discoveryScriptPath = Paths.get(discoveryScriptPathStr);\n        if (!discoveryScriptPath.isAbsolute()) {\n            discoveryScriptPath =\n                    Paths.get(\n                            System.getenv().getOrDefault(ConfigConstants.ENV_FLINK_HOME_DIR, \".\"),\n                            discoveryScriptPathStr);\n        }\n        discoveryScriptFile = discoveryScriptPath.toFile();\n\n        if (!discoveryScriptFile.exists()) {\n            throw new FileNotFoundException(\n                    String.format(","sourceCodeStart":48,"sourceCodeEnd":84,"githubUrl":"https://github.com/apache/flink/blob/2f3c205e9266cb30240eb7f4fdab15cad629a70f/flink-external-resources/flink-external-resource-gpu/src/main/java/org/apache/flink/externalresource/gpu/GPUDriver.java#L48-L84","documentation":"Error \"GPU discovery script ('%s') is not configured.\" thrown in apache/flink.","triggerScenarios":"Triggered at runtime when the operation fails because: GPU discovery script ('the reported value') is not configured.","commonSituations":"Commonly caused by misconfiguration, missing dependencies or files, unsupported types or operations, or invalid user input leading to: GPU discovery script ('the reported value') is not configured.","solutions":["Address the cause reported by the error message: GPU discovery script ('the reported value') is not configured.","Verify the inputs, configuration values, and classpath/dependency setup related to this operation, then retry."],"exampleFix":"Correct the condition described (\"GPU discovery script ('the reported value') is not configured.\") and rerun the job or command.","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2f3c205e9266cb30240eb7f4fdab15cad629a70f","analyzedAt":"2026-08-14T08:48:24.518Z","schemaVersion":2},"datasetVersion":"2026-08-14T10:17:34.591Z"}