Skip to content

A simple transfer data from NiFi to CQL solution (support Apache Cassandra, ScyllaDB, AstraDB, YugabyteDB).

License

Notifications You must be signed in to change notification settings

george0st/Ff2Cql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ff2Cql

NiFi + Cassandra

A simple transfer data from NiFi to CQL (support Apache Cassandra, ScyllaDB, AstraDB, etc.). The implementation details:

  • development NiFi v2 processor (with controller) and java application (support Java 17/21+)
  • support Apache Cassandra v4/v5, ScyllaDB, AstraDB based on CQL (Cassandra Query Language)

1. The main motivation

  • the Apache NiFi v2 does not support Apache Cassandra v4/v5 (NiFi v2 removed the Cassandra processor due to security vulnerabilities and unmaintained code. The processor supported only Cassandra v3 not newer.)

2. Usage in NiFi

You can use this preferred way:

or two other alternative ways:

  • ExecuteProcess with java application (see 'Ff2Cql-*.jar'), where inputs are CSV files (addition detail)
  • ExecuteStreamCommand with java application (see 'Ff2Cql-*.jar'), where inputs are FlowFiles via stdin (addition detail)

3. Connection setting

You can see sample of relevant setting for CQL controllers:

NOTE:

  • These connection settings are used directly in unit tests.