Giter Site home page Giter Site logo

kevinwkc / nifi-scripting-samples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mkalika/nifi-executescript-samples

0.0 1.0 0.0 40 KB

Sample scripts for use with Apache NiFi's ExecuteScript processor

License: Apache License 2.0

Java 56.09% Groovy 12.18% JavaScript 16.61% Python 15.13%

nifi-scripting-samples's Introduction

Run Status

NiFi Scripting Samples

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

ExecuteScript Samples

Scripts are designed to demonstrate basic ExecuteScript techniques in various languages:

Topic Groovy Javascript Python
Reading and writing flowfile attributes attributes.groovy 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
Parsing URIs parse_uri.groovy
Converting XML to JSON xmlToJson.groovy

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

nifi-scripting-samples's People

Contributors

jvwing avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.