Connectors to read and write Pravega streams with Apache NiFi.
-
PublishPravega: This processor writes incoming FlowFiles to a Pravega stream. It uses Pravega transactions to provide at-least-one guarantees.
-
PublishPravegaRecord: This is similar to PublishPravega but it uses a NiFi Record Reader to parse the incoming FlowFiles as CSV, JSON, or Avro. Each record will be written as a separate event to a Pravega stream. Events written to Pravega will be serialized with a Record Writer and can be CSV, JSON, or Avro.
-
ConsumePravega: This processor reads events from a Pravega stream and produces FlowFiles. This processor stores the most recent successful Pravega checkpoint in the NiFi cluster state to allow it to resume when restarting the processor or node. It provides at-least-once guarantees.
All of these processors allow for concurrency in a NiFi cluster or a standalone NiFi node.
mvn install
Copy the produced artifact nifi-pravega-nar/target/nifi-pravega-nar-0.1.nar
to the lib
directory of your NiFi home directory.
Then restart Apache NiFi.