Skip to content

Simple gRPC server that dumps messages sent from a NiFi

Notifications You must be signed in to change notification settings

m-hogue/nifi-grpc-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NiFi FlowFile gRPC Server

Simple server to receive FlowFiles sent from a NiFi processor

Reference: https://issues.apache.org/jira/browse/NIFI-4037

Instructions

  1. Clone this repo.

  2. Build a NiFi flow of GenerateFlowFile and InvokeGRPC as described in the ticket above, but wait to enable the flow.

  3. Configure the InvokeGRPC as follows:

  4. Configure the GenerateFlowFile processor to generate an abitrarily sized file at an arbitrary interval. I chose 30B @ every 5 seconds.

  5. Run the gRPC server main method in your IDE: https://github.com/m-hogue/nifi-grpc-server/blob/master/src/main/java/org/mikeyo/NifiFlowFileServer.java or run 'mvn exec:java'

  6. Enable both the GenerateFlowFile and InvokeGRPC processors. You should see the server log a message roughly every 5 seconds once the generated flow file has made it through the flow.

About

Simple gRPC server that dumps messages sent from a NiFi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published