{"record":{"id":"9e0bbe516fe7f5b3","repo":"apache/hadoop","slug":"no-state-persist-directory-configured-disable-per","errorCode":null,"errorMessage":"No state persist directory configured! Disable persistence.","messagePattern":"No state persist directory configured! Disable persistence\\.","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"hadoop-tools/hadoop-rumen/src/main/java/org/apache/hadoop/tools/rumen/state/StatePool.java","lineNumber":162,"sourceCode":"   * once.\n   */\n  public void initialize(Configuration conf) throws Exception {\n    if (isInitialized) {\n      throw new RuntimeException(\"StatePool is already initialized!\");\n    }\n    \n    this.conf = conf;\n    String persistDir = conf.get(DIR_CONFIG);\n    reload = conf.getBoolean(RELOAD_CONFIG, false);\n    persist = conf.getBoolean(PERSIST_CONFIG, false);\n    \n    // reload if configured\n    if (reload || persist) {\n      System.out.println(\"State Manager initializing. State directory : \" \n                         + persistDir);\n      System.out.println(\"Reload:\" + reload + \" Persist:\" + persist);\n      if (persistDir == null) {\n        throw new RuntimeException(\"No state persist directory configured!\" \n                                   + \" Disable persistence.\");\n      } else {\n        this.persistDirPath = new Path(persistDir);\n      }\n    } else {\n      System.out.println(\"State Manager disabled.\");\n    }\n    \n    // reload\n    reload();\n    \n    // now set the timestamp\n    DateFormat formatter = \n      new SimpleDateFormat(\"dd-MMM-yyyy-hh'H'-mm'M'-ss'S'\");\n    Calendar calendar = Calendar.getInstance();\n    calendar.setTimeInMillis(System.currentTimeMillis());\n    timeStamp = formatter.format(calendar.getTime());\n    ","sourceCodeStart":144,"sourceCodeEnd":180,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-tools/hadoop-rumen/src/main/java/org/apache/hadoop/tools/rumen/state/StatePool.java#L144-L180","documentation":"Error \"No state persist directory configured! Disable persistence.\" thrown in apache/hadoop.","triggerScenarios":"StatePool is asked to persist state but no persist directory is configured, so persistence is disabled.","commonSituations":"See trigger scenarios.","solutions":["Set the state persist directory configuration (sls/rumen state dir) to enable persistence, or ignore the warning to run without persistence."],"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-23T01:17:44.959Z"}