Home
Softono
Ff2Cql

Ff2Cql

Open source Apache-2.0 Java
81
Stars
5
Forks
0
Issues
2
Watchers
7 months
Last Commit

About Ff2Cql

A simple transfer data between NiFi and CQL solution (support Apache Cassandra, ScyllaDB, AstraDB, etc.).

Platforms

Web Self-hosted

Languages

Java

Links

Ff2Cql

NiFi + Cassandra

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

  • development NiFi v2 processor (with controller) and java application (support Java 17/21+)
  • support Apache Cassandra v4/v5, ScyllaDB, AstraDB, YugabyteDB 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 (NiFi v2 processor with controller):

  • PutCQL, put data to CQL solution, where inputs are FlowFiles
  • GetCQL, get data from CQL solution, where outputs are FlowFiles
  • NOTE:
    • You can download the latest version, see 'nifi-cql-nar-*.nar' file
    • Sample Flow definitions, see

or two other older alternative ways:

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

3. Connection setting

You can see a sample of relevant setting for CQL controller here (these connection settings are used directly in unit tests):

3.1 Cassandra

3.2 Scylla

3.3 AstraDB

3.4 YugabyteDB

4. Apache NiFi v2 & Scylla/Cassandra v5

Apache NiFi v2 & Scylla/Cassandra v5