Skip to content

Latest commit

 

History

History
50 lines (32 loc) · 1.45 KB

README.md

File metadata and controls

50 lines (32 loc) · 1.45 KB

Apache Nifi Demo with example templates

Nifi docker-compose file with demo templates

How to start

  1. run docker-compose up
  2. go to http://localhost:9090/nifi

How to load templates

  1. upload template via "Operate" menu
  2. load template in flow

Run simple_database_service

  1. double-click process group
  2. double click "QueryDatabaseTable" processor
  3. in properties tab: click arrow -> next to "DBCPConnectionPool" in row "Database Connection Pooling Service"
  4. enable the AvroReader Service by clicking the lightning icon on the right
  5. enable the DBCPConnectionPool Service by clicking the lightning icon on the right
  6. right-click both processors and select "Start"

run simple_download_service

  1. double-click process group
  2. double click "HandleHttpRequest"
  3. in properties tab: click arrow -> next to "StandardHttpConectMap" in row "HTTP Context Map"
  4. enable the "StandardHttpContextMap" Service by clicking the lightning icon on the right
  5. start all processors
  6. open curl/Postman/Insomnia and send the following json inside the body (other possible values: "second.jpg", "third.jpg") to localhost:15000/getFile:
{
	"filename": "first.jpg"
}

Note: try to send another value such as "fourth.jpg" or "../../etc/passwd" to see what happens

run full_download_service

similar to other services

Note: try to send another value such as "fourth.jpg" or "../../etc/passwd" to see what happens