• Stars
    star
    195
  • Rank 199,374 (Top 4 %)
  • Language
    JavaScript
  • Created about 9 years ago
  • Updated almost 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Apache NiFi example flows

NiFi Examples

Apache NiFi example flows.

collect-stream-logs

This flow shows workflow for log collection, aggregation, store and display.

  1. Ingest logs from folders.
  2. Listen for syslogs on UDP port.
  3. Merge syslogs and drop-in logs and persist merged logs to Solr for historical search.
  4. Dashboard: stream real-time log events to dashboard and enable cross-filter search on historical logs data.

iot-activity-tracker

This flow shows how to bring IoT data into Enterprise.

  1. Ingest IoT data over WebSocket and HTTP
  2. Store all data to Hadoop(HDFS) and summary data to NoSQL(MarkLogic) for historical data search.
  3. Route data based on pre-set thresholds (vital signs like pulse rate and blood pressure) to alert users and physicians.
  4. Inactivity Reporting

oltp-to-olap

A low latency Change Data Capture flow to continuously replicate data from OLTP(MySQL) to OLAP(NoSQL) systems with no impact to the source.

  1. Multi-tenant: can contain data from many different databases, support multiple consumers.
  2. Flexible CDC: Capture changes from many data sources and types.
    1. Source consistency preservation. No impact to the source.
    2. Both DML (INSERT/UPDATE/DELETE) and DDL (ALTER/CREATE/DROP) are captured non invasively.
    3. Produce Logical Change Records (LCR) in JSON format.
    4. Commits at the source are grouped by transaction.
  3. Flexible Consumer Dataflows: consumer dataflows can be implemented in Apache NiFi, Flink, Spark or Apex
    1. Parallel processing data filtering, transformation and loading.
  4. Flexible Databus: store LCRs in Kafka streams for durability and pub-sub semantics.
    1. Use only Kafka as input for all consumer dataflows.
    2. Feed data to many client types (real-time, slow/catch-up, full bootstrap).
    3. Consumption from an arbitrary time point in the change stream including full bootstrap capability of the entire data.
    4. Guaranteed in-commit-order and at-least-once delivery.
    5. Partitioned consumption (partitioned data to different Kafka topics based on database name, table or any field of LCR)
  5. Both batch and near real time delivery.

csv-to-json

This flow shows how to convert a CSV entry to a JSON document using ExtractText and ReplaceText.

decompression

This flow demonstrates taking an archive that is created with several levels of compression and then continuously decompressing it using a loop until the archived file is extracted out.

http-get-route

his flow pulls from a web service (example is nifi itself), extracts text from a specific section, makes a routing decision on that extracted value, prepares to write to disk using PutFile.

invoke-http-route

This flow demonstrates how to call an HTTP service based on an incoming FlowFile, and route the original FlowFile based on the status code returned from the invocation. In this example, every 30 seconds a FlowFile is produced, an attribute is added to the FlowFile that sets q=nifi, the google.com is invoked for that FlowFile, and any response with a 200 is routed to a relationship called 200.

retry-count-loop

This process group can be used to maintain a count of how many times a flowfile goes through it. If it reaches some configured threshold it will route to a 'Limit Exceeded' relationship otherwise it will route to 'retry'. Great for processes which you only want to run X number of times before you give up.

split-route

This flow demonstrates splitting a file on line boundaries, routing the splits based on a regex in the content, merging the less important files together for storage somewhere, and sending the higher priority files down another path to take immediate action.

twitter-garden-hose

This flow pulls from Twitter using the garden hose setting; it pulls out some basic attributes from the Json and then routes only those items that are actually tweets.

twitter-solr

This flow shows how to index tweets with Solr using NiFi. Pre-requisites for this flow are NiFi 0.3.0 or later, the creation of a Twitter application, and a running instance of Solr 5.1 or later with a tweets collection:

Install NiFi

  1. Manual: Download Apache NiFi binaries and unpack to a folder.
  2. On Mac: brew install nifi

Run NiFi

cd /Developer/Applications/nifi
./bin/nifi.sh  start
./bin/nifi.sh  stop

On Mac

# nifi start|stop|run|restart|status|dump|install
nifi start 
nifi status  
nifi stop 
# Working Directory: /usr/local/Cellar/nifi/0.3.0/libexec

More Repositories

1

ngx-starter-kit

πŸ…°οΈ Angular πŸš€ NestJS πŸ’ Starter Kit
TypeScript
585
star
2

micro-starter-kit

Cloud Native GoLang Microservices - gRPC, GraphQL
Go
205
star
3

macbooksetup

MacOS setup for Developers and SREs
Shell
59
star
4

koa-router-decorators

koa router ES7 decorators
TypeScript
52
star
5

micro-apps

Microservices in Post-Kubernetes Era. A polyglot monorepo
Kotlin
51
star
6

grpc-starter-kit

TypeScript
49
star
7

spectacular

Sweet & Powerful SvelteKit Project Template https://spectacular-console.vercel.app/ https://spectacular-docs.vercel.app/ https://spectacular-web.vercel.app/
Svelte
45
star
8

microservices-observability

πŸŽ‰ Microservices Observability - Log Aggregation, Distributed Tracking, Metrics
Kotlin
41
star
9

cdc-kafka-hadoop

MySQL to NoSQL real time dataflow
Java
18
star
10

go-workspace

Experimenting with golang 1.18 workspaces, fuzzing and generics
Go
16
star
11

angular-webstorm-project-setup

Here you can find step by step instructions on how to setup pro level development environment for developing Front-end applications using AngularJS Framework
15
star
12

nifi-scripting

NiFi Dynamic Script Executors
Groovy
15
star
13

reactive-apps

🐎 Reactive Apps with Spring 5
Kotlin
14
star
14

ml-experiments

machine learning playground
Java
12
star
15

nifi-websocket

Apache NiFi WebSocket Listener
Java
10
star
16

Angular-AdminLTE

Rewrite of popular AdminLTE in AngularJS
CSS
10
star
17

cloud-native-apps

12 factor cloud native apps
CSS
9
star
18

yeti

https://xmlking.gitbook.io/yeti/v/develop/
TypeScript
9
star
19

nxp

@nrwl nx-plugins
TypeScript
7
star
20

node-iot-healthcare

node.js lib for fitness and health tracking devices.
JavaScript
6
star
21

angular-elements-in-angular-shell

angular elements in nx workspace
TypeScript
4
star
22

connect4

Connect 4️⃣Game
TypeScript
4
star
23

rest-api-docs

Grails REST API with swagger style API docs
Groovy
4
star
24

hub

TypeScript
4
star
25

toolkit

gRPC, CloudEvents toolkit
Go
4
star
26

reactive-grails-workshop

Reactive Grails 3.2, Angular, JSON Web Token JWT, RxGORM, RxJava, MongoDB
Groovy
4
star
27

Resilience

Yet Another Application Resilience Framework
CSS
4
star
28

grails-batch-rest

Grails Spring Batch, CORS, REST API, WebSockets, Spring Security Core/LDAP Demo
Groovy
4
star
29

logger

meta logger for golang
Go
3
star
30

nodeui

πŸ‘„ Command Line UI components for Node.js
TypeScript
3
star
31

micro-apps-deprecated

Microservices for Post-Kubernetes Era. A polyglot monorepo
Kotlin
3
star
32

spa-starter-kit

Single Page Application (SPA) Starter project build with Angular2, Angular CLI
TypeScript
3
star
33

hrm

Web-Bluetooth Demo: Heart Rate Service
JavaScript
2
star
34

trust-broker

Multi Identity Provider - OAuth, JSON Web Token, Facebook, Google
JavaScript
2
star
35

react-native-mobile-starter-kit

Mobile Starter Kit - React Native, Redux, Native Base, CodePush and TypeScript
TypeScript
2
star
36

entity-demo

TypeScript
2
star
37

configor

Moved to https://github.com/xmlking/toolkit/tree/develop/configurator
Go
2
star
38

kendo-requireJS-bootstrap

AMD-aware kendoUI seed project with Twitter Bootstrap and Themes
JavaScript
2
star
39

AppBazaar

App Bazaar
Groovy
2
star
40

dapp-experiments

Goodwill driven through monetary incentives πŸ‘
TypeScript
1
star
41

MicrosoftBand

Swift wrapper API for Microsoft Band SDK.
Objective-C
1
star
42

ko-demo

basic go project using ko for deployment , KIND as Kubernetes runtime
Makefile
1
star
43

grails-angular-jwt

grails-angular-jwt
CSS
1
star
44

gulp-ng-recipes

A Collection of Gulp Recipes.
TypeScript
1
star
45

spring-graphql

Kotlin
1
star
46

WearableHub

TypeScript
1
star
47

nativescript-ngx-microsoftband

πŸ“¦ Microsoft Band Plugin for NativeScript with Angular
TypeScript
1
star
48

identity

Cloud identity management system
1
star
49

broker

Go
1
star
50

cdc-images

CDC Docker Images
Shell
1
star
51

micro

Makefile
1
star
52

blockchain

TypeScript
1
star
53

svelte-starter-kit

SvelteKit Starter Template Moved to: https://github.com/xmlking/spectacular
Svelte
1
star
54

vertx-stalgia

vertx-stalgia is a Nodestalgia/Logstalgia port with Vert.X, Grails, Canvas and WebSockets.
JavaScript
1
star
55

grails-angular-microservices

bunch of Grails 3 microservices used as backends for Angular SPA front-end
Groovy
1
star
56

spark-playground

Apache Spark Experiments
Kotlin
1
star
57

node-dash-button-webtask

Amazon dash button actions with Auth0's webtasks
JavaScript
1
star
58

sveltekit-turbo

JavaScript
1
star
59

spark-demo

spark kotlin demo
Kotlin
1
star
60

fitness-tracking

Fitness Tracker
Swift
1
star
61

ai-experiments

LLM mistral
Python
1
star