Uploaded image for project: 'Apache NiFi MiNiFi C++'
  1. Apache NiFi MiNiFi C++
  2. MINIFICPP-160

nifi-minifi-cpp throws "Invalid File Filter regex" error for GetFile's default "File Filter" property

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.1.0
    • None

    Description

      I used the 0.0.1 minifi converter toolkit for a flow containing a GetFile processor with default "Filter Filter" properties ([^\.].*). It generated the following config:

      • name: GetFile
        class: org.apache.nifi.processors.standard.GetFile
        max concurrent tasks: 1
        scheduling strategy: TIMER_DRIVEN
        scheduling period: 1 sec
        penalization period: 30 sec
        yield period: 1 sec
        run duration nanos: 0
        auto-terminated relationships list: []
        Properties:
        Batch Size: '10'
        File Filter: '[^\.].*'
        Ignore Hidden Files: 'true'
        Input Directory: /host-data/metrics
        Keep Source File: 'false'
        Maximum File Age:
        Maximum File Size:
        Minimum File Age: 10 sec
        Minimum File Size: 0 B
        Path Filter:
        Polling Interval: 0 sec
        Recurse Subdirectories: 'true'

      However, at runtime, minifi gives an invalid regex error:
      [2016-10-03 16:31:11.318] [minifi log] [error] Invalid File Filter regex: regex_error.

      Attachments

        Activity

          People

            bqiu Ben Qiu
            randerzander Randy Gelhausen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: