{"record":{"id":"58fb1553103cbb1f","repo":"apache/hadoop","slug":"unable-to-create-local-dir","errorCode":null,"errorMessage":"Unable to create local dir: {}","messagePattern":"Unable to create local dir: (.+?)","errorType":"exception","errorClass":"IOException","httpStatus":null,"severity":"error","filePath":"hadoop-tools/hadoop-dynamometer/hadoop-dynamometer-infra/src/main/java/org/apache/hadoop/tools/dynamometer/DynoInfraUtils.java","lineNumber":145,"sourceCode":"   */\n  public static File fetchHadoopTarball(File destinationDir, String version,\n      Configuration conf, Logger log) throws IOException {\n    log.info(\"Looking for Hadoop tarball for version: \" + version);\n    File destinationFile = new File(destinationDir,\n        String.format(HADOOP_TAR_FILENAME_FORMAT, version));\n    if (destinationFile.exists()) {\n      log.info(\"Found tarball at: \" + destinationFile.getAbsolutePath());\n      return destinationFile;\n    }\n    String apacheMirror = conf.get(APACHE_DOWNLOAD_MIRROR_KEY);\n    if (apacheMirror == null) {\n      apacheMirror = System.getProperty(APACHE_DOWNLOAD_MIRROR_KEY,\n          APACHE_DOWNLOAD_MIRROR_DEFAULT);\n    }\n\n    if (!destinationDir.exists()) {\n      if (!destinationDir.mkdirs()) {\n        throw new IOException(\"Unable to create local dir: \" + destinationDir);\n      }\n    }\n    URL downloadURL = new URL(apacheMirror + String\n        .format(APACHE_DOWNLOAD_MIRROR_SUFFIX_FORMAT, version, version));\n    log.info(\"Downloading tarball from: <{}> to <{}>\", downloadURL,\n        destinationFile.getAbsolutePath());\n    FileUtils.copyURLToFile(downloadURL, destinationFile, 10000, 60000);\n    log.info(\"Completed downloading of Hadoop tarball\");\n    return destinationFile;\n  }\n\n  /**\n   * Get the URI that can be used to access the launched NameNode for HDFS RPCs.\n   *\n   * @param nameNodeProperties The set of properties representing the\n   *                           information about the launched NameNode.\n   * @return The HDFS URI.\n   */","sourceCodeStart":127,"sourceCodeEnd":163,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-tools/hadoop-dynamometer/hadoop-dynamometer-infra/src/main/java/org/apache/hadoop/tools/dynamometer/DynoInfraUtils.java#L127-L163","documentation":"Error \"Unable to create local dir: {}\" thrown in apache/hadoop.","triggerScenarios":"DynoInfraUtils fails to create a required local working directory on the host filesystem, usually due to permissions or a full/exhausted disk.","commonSituations":"See trigger scenarios.","solutions":["Check permissions and free space on the local filesystem and create the directory manually if needed."],"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"}