{"record":{"id":"14541632e2b48d3a","repo":"apache/hadoop","slug":"no-value-for-key-found-in-conf-file-145416","errorCode":null,"errorMessage":"No value for {key} found in conf file.","messagePattern":"No value for (.+?) found in conf file\\.","errorType":"validation","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"hadoop-tools/hadoop-azure-datalake/src/main/java/org/apache/hadoop/fs/adl/AdlFileSystem.java","lineNumber":950,"sourceCode":"   * Get replication.\n   *\n   * @param src file name\n   * @return file replication\n   * @deprecated Use getFileStatus() instead\n   */\n  @Deprecated\n  public short getReplication(Path src) {\n    return ADL_REPLICATION_FACTOR;\n  }\n\n  private Path makeAbsolute(Path path) {\n    return path.isAbsolute() ? path : new Path(this.workingDirectory, path);\n  }\n\n  private static String getNonEmptyVal(Configuration conf, String key) {\n    String value = conf.get(key);\n    if (StringUtils.isEmpty(value)) {\n      throw new IllegalArgumentException(\n          \"No value for \" + key + \" found in conf file.\");\n    }\n    return value;\n  }\n\n  /**\n   * A wrapper of {@link Configuration#getPassword(String)}. It returns\n   * <code>String</code> instead of <code>char[]</code>.\n   *\n   * @param conf the configuration\n   * @param key the property key\n   * @return the password string\n   * @throws IOException if the password was not found\n   */\n  private static String getPasswordString(Configuration conf, String key)\n      throws IOException {\n    char[] passchars = conf.getPassword(key);\n    if (passchars == null) {","sourceCodeStart":932,"sourceCodeEnd":968,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-tools/hadoop-azure-datalake/src/main/java/org/apache/hadoop/fs/adl/AdlFileSystem.java#L932-L968","documentation":"Error \"No value for {key} found in conf file.\" thrown in apache/hadoop.","triggerScenarios":"A required ADL configuration key is absent from the configuration.","commonSituations":"See trigger scenarios.","solutions":["Set the named key in the Hadoop configuration (core-site.xml or job conf).","Check the key spelling against the ADL configuration documentation."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2add9630210752f88ceb1bb74eb65e37bf41da8e","analyzedAt":"2026-08-22T19:55:07.957Z","schemaVersion":2},"datasetVersion":"2026-08-22T20:17:22.307Z"}