Skip to content

SherifEldeeb/nifi-executescript-samples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Run Status

NiFi ExecuteScript Samples

This repo contains samples scripts for use with Apache NiFi's ExecuteScript processor. Additionally, the repo may be cloned and modified to unit test custom scripts using NiFi's mock framework.

Sample Scripts

Scripts are designed to demonstrate basic techniques in various languages:

Topic Javascript Python
Reading and writing flowfile attributes attributes.js attributes.py
Logging log.js log.py
Transforming an input flowfile to a single output transform.js transform.py
Splitting an input flowfile to multiple outputs split.js split.py
Writing counter metrics counter.js counter.py
Reading nifi.properties properties.js properties.py
Reading and writing state state.js state.py

Contributing

Please help. These sample scripts are very likely to be buggy, unnecessarily complicated, misguided, downright stupid, or all of the above. Please open an issue for bugs and new contributions.

License

Apache License 2.0

About

Sample scripts for use with Apache NiFi's ExecuteScript processor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 52.0%
  • Python 24.6%
  • JavaScript 23.4%