Created 05-16-2017 01:55 PM
Hi everyone,
i want to take some terms from a cassandra database, and then send them as a parameter to java program which will output some data that i will need to save in a cassandra database.
Is this possible with nifi, if yes, which processors to use? specially for the execution of the java program, since i've seen that processors for cassandra already exists.
Thanks!
Created 05-16-2017 07:28 PM
You can use the ExecuteStreamCommand processor to run the java program and it uses the expression language, so you will be able to pass attributes as parameters to the command line.
Created 05-16-2017 07:28 PM
You can use the ExecuteStreamCommand processor to run the java program and it uses the expression language, so you will be able to pass attributes as parameters to the command line.
Created 05-16-2017 07:56 PM
Can you please give me an example?
Created on 05-16-2017 08:07 PM - edited 08-18-2019 03:09 AM
Here is an example of java program being passed the name of the flow file as a parameter on the command line:
Created 05-16-2017 08:53 PM
thanks a lot! just one more question, how to get the output from the java program in nifi?
Created 05-16-2017 09:08 PM
NiFi does that automatically.
The processor executes an external command on the contents of a flow file, and creates a new flow file with the results of the command.
Created 04-18-2022 08:55 AM
What is that jar file about. Is it an application or Single file app.