Anant example-cassandra-nifi
License: No License Provided
Language: No Language Provided
Learn how to connect Apache Cassandra and Apache Nifi! We will show you how you can quickly connect Apache Cassandra and Apache Nifi and confirm you are able to use Nifi and Cassandra together.
docker run --name cassandra -p 9042:9042 -d cassandra:latest
cqlsh
docker exec -it cassandra cqlsh
CREATE KEYSPACE demo WITH REPLICATION={'class': 'SimpleStrategy', 'replication_factor': 1};
CREATE TABLE demo.previous_employees_by_job_title (
job_title text,
employee_id uuid,
employee_name text,
first_day timestamp,
last_day timestamp,
PRIMARY KEY (job_title, employee_id)
) WITH CLUSTERING ORDER BY (employee_id ASC);
insert into previous_employees_by_job_title (job_title, employee_id, employee_name, first_day, last_day)
values('Biologist', e48fd2c9-3abb-4592-a7d6-ccccf06e991e, 'Fiona Lane', '2009-02-26 20:47:18Z', '2005-10-13 20:01:22Z') ;
./bin/nifi.sh start
Navigate to https://localhost:8443/nifi/login
If this is your first time logging into local Apache Nifi, you will need to find the autogenerated credentials. You can do so by running the below command within the Apache Nifi directory and then searching for Username
and Password
:
cat logs/nifi-app_<date>.log
Join Our Newsletter!
Sign up below to receive email updates and see what's going on with our company.