{"record":{"id":"dec030e7ef7d0294","repo":"apache/hadoop","slug":"mapreduce-input-sequencefileinputfilter-regexnot-s","errorCode":null,"errorMessage":"mapreduce.input.sequencefileinputfilter.regexnot set","messagePattern":"mapreduce\\.input\\.sequencefileinputfilter\\.regexnot set","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/lib/input/SequenceFileInputFilter.java","lineNumber":134,"sourceCode":"     */\n    public static void setPattern(Configuration conf, String regex)\n        throws PatternSyntaxException {\n      try {\n        Pattern.compile(regex);\n      } catch (PatternSyntaxException e) {\n        throw new IllegalArgumentException(\"Invalid pattern: \"+regex);\n      }\n      conf.set(FILTER_REGEX, regex);\n    }\n        \n    public RegexFilter() { }\n        \n    /** configure the Filter by checking the configuration\n     */\n    public void setConf(Configuration conf) {\n      String regex = conf.get(FILTER_REGEX);\n      if (regex == null)\n        throw new RuntimeException(FILTER_REGEX + \"not set\");\n      this.p = Pattern.compile(regex);\n      this.conf = conf;\n    }\n\n\n    /** Filtering method\n     * If key matches the regex, return true; otherwise return false\n     * @see Filter#accept(Object)\n     */\n    public boolean accept(Object key) {\n      return p.matcher(key.toString()).matches();\n    }\n  }\n\n  /** This class returns a percentage of records\n   * The percentage is determined by a filtering frequency <i>f</i> using\n   * the criteria record# % f == 0.\n   * For example, if the frequency is 10, one out of 10 records is returned.","sourceCodeStart":116,"sourceCodeEnd":152,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/lib/input/SequenceFileInputFilter.java#L116-L152","documentation":"Error \"mapreduce.input.sequencefileinputfilter.regexnot set\" thrown in apache/hadoop.","triggerScenarios":"Thrown at hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/lib/input/SequenceFileInputFilter.java:134 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set mapreduce.input.sequencefileinputfilter.regex in the job configuration when using RegexFilter."],"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"}