{"record":{"id":"01ecf8b147b34161","repo":"apache/hadoop","slug":"no-file-s","errorCode":null,"errorMessage":"No file: %s","messagePattern":"No file: (.+?)","errorType":"exception","errorClass":"FileNotFoundException","httpStatus":null,"severity":"error","filePath":"hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/impl/CopyFromLocalOperation.java","lineNumber":314,"sourceCode":"          callbacks.copyLocalFileFromTo(\n              file,\n              uploadEntry.source,\n              uploadEntry.destination);\n          return null;\n        }\n    ));\n  }\n\n  /**\n   * Checks the source before upload starts.\n   *\n   * @param src - Source file\n   * @throws FileNotFoundException - if the file isn't found\n   */\n  private void checkSource(File src)\n      throws FileNotFoundException {\n    if (!src.exists()) {\n      throw new FileNotFoundException(\"No file: \" + src.getPath());\n    }\n  }\n\n  /**\n   * Check the destination path and make sure it's compatible with the source,\n   * i.e. source and destination are both files / directories.\n   *\n   * @param dest      - Destination path\n   * @param src       - Source file\n   * @param overwrite - Should source overwrite destination\n   * @throws PathExistsException - If the destination path exists and no\n   *                             overwrite flag is set\n   * @throws FileAlreadyExistsException - If source is file and destination is path\n   */\n  private void checkDestination(\n      Path dest,\n      File src,\n      boolean overwrite) throws PathExistsException,","sourceCodeStart":296,"sourceCodeEnd":332,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/impl/CopyFromLocalOperation.java#L296-L332","documentation":"Error \"No file: %s\" thrown in apache/hadoop.","triggerScenarios":"Thrown at hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/impl/CopyFromLocalOperation.java:314 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the source file exists at the given path before the copyFromLocal operation."],"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"}