Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-8167

Decouple NiFi & Schema Registry dependencies

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Core Framework
    • None

    Description

      Today, NiFi depends on Schema Registry for Avro schemas for the data it is processing. By default, the caching duration for the Schema Registry controller service is 1 hour, which can be of course increased or decreased. But it has its flaws.

      • Make the cache duration too high, and you would need to wait for a long time before an updated schema is reflected in the NiFi flow.
      • Make the cache duration too low, and the NiFi flow may spend higher time in fetching the schemas from SR and also may fail more often with schema not available errors, in case the Schema Registry instance is not available for a short period.

      I would suggest having Schema Registry behave like Ranger do. All the schemas from the Schema Registry can be cached at the NiFi nodes like Ranger's policy cache and any change to the schema can be propagated to the NiFi nodes using that Schema Registry instance.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rsoni Rahul Soni
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: