Member since
07-30-2019
3471
Posts
1642
Kudos Received
1020
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 135 | 06-03-2026 06:06 PM | |
| 451 | 05-06-2026 09:16 AM | |
| 815 | 05-04-2026 05:20 AM | |
| 485 | 05-01-2026 10:15 AM | |
| 617 | 03-23-2026 05:44 AM |
02-25-2020
11:00 AM
@vineet_harkut I recommend starting a new question since this one already has a resolution. You'll get better responses that way. But the clientId can be whatever you want to use. For example even below would work: "revision":{"clientId":"1","version":0} The JSON response will have the UUID for the component you created which you would then use to modify the configuration of that component in future rest api calls. Thank you, Matt
... View more
02-24-2020
06:59 AM
1 Kudo
@justjoe With Apache NiFi 1.0 - 1.9 versions, only input and output ports added at the root canvas level (very top level) will be "remote" input/output ports. All input/output ports added within sub-process groups are local ports only. NiFi Remote Process Groups (RPG) are only able to send to or pull from "remote" input and output ports. With Apache NiFi 1.10 and newer you can now have the option of designating an input or output port as either local or remote when it is being added to the canvas within a sub process group. Hope this helps, Matt
... View more
02-18-2020
05:29 AM
@nishank_paras First we need to asks questions to better understand the http cloud endpoint: How do you currently accomplish this task outside of NiFi? Is it possible to connect via a terminal/command prompt to get the file from the http cloud server? Does the http cloud service have a rest-api for getting data from it? My first thought would be the invokeHTTP processor to get your file from the http cloud server... Then use an UpdateAttribute processor to change the "filename" attribute value on the NiFi FlowFile created by the invokeHTTTP processor... You did not mention what you want to do with this file once you have retrieved it ad renamed it in NiFi. Are you trying to write it back to the same http cloud service? Are you trying to write the file to another service/endpoint? Are you writing it to a local directory? Then we can start to look at what processors NiFi may have available to accomplish the same methods. Hope this helps get you started, Matt
... View more
02-17-2020
04:58 PM
1 Kudo
@thuylevn The ConvertJsonToAvro processor was removed from the default NiFi distribution bundle because of space limitations as of the Apache NiFi 1.10 release. https://cwiki.apache.org/confluence/display/NIFI/Migration+Guidance The ConvertJSONToAvro processor was part of the nifi-kite-nar https://github.com/apache/nifi/tree/master/nifi-nar-bundles/nifi-kite-bundle Hope this helps, Matt
... View more
02-14-2020
09:59 AM
@thuylevn As i mentioned, NiFi has never been released with either a "JSONToAttributes' or "ConvertJSONToAvro" processor. All I can do is suggest existing processors which can hopefully accomplish what your use case requires. The other option is for you to build your own custom processor implementations and add them to your NiFi. Hope this helps. Thank you, Matt
... View more
02-14-2020
09:55 AM
1 Kudo
@vikrant_kumar24 The ExecuteStreamCommand processor is not doing anything fancy here. It is just trying to execute the command you enter. Assuming the command was "myscript.py", The executeStreamCommand would be doing same thing as you would if you opened a terminal window on your NiFi node and clicked on "myscript.py" to run it. Keep in mind that NiFi is performing this action as the user that owns the NiFi java process. The ExecuteStreamCommand processor will pass the FlowFiles content (if there is any) to stdin. Have you perhaps looked at the ExecuteScript processor instead? Hope this helps, Matt
... View more
02-14-2020
09:50 AM
1 Kudo
@DavidR NiFi requires that a sensitive properties key has been configured. The Sensitive properties key is used to encrypt all passwords written to the flow.xml.gz file. The flow.xml.gz is not portable between different installations of NiFi unless at least 1 of the 2 following is true: 1. Both NiFi installations are using the exact same sensitive properties key in the nif.properties file: nifi.sensitive.props.key= All the sensitive properties (passwords) entered in to components configured in your dataflows contained within the flow.xml.gz are encrypted. NiFi will fail to start if it cannot decrypt these sensitive properties as the flow.xml.gz is uncompressed and loaded in to memory. 2. The flow.xml.gz contains no encrypted sensitive properties. If you do not know the sensitive properties key used on NiFi where the flow.xml.gz was obtained, you can uncompress the flow.xml.gz yourself and remove all occurrences of "enc{.*}". For example: <value>enc{2fecf4bbb0456fd10c088f73aab2b3c3e92b532afa46eb042f0b0a14b06b1b60}</value> would be replaced with: <value></value> Then gzip the flow.xml again. This removes all passwords from your flow.xml.gz will allowing it to be loaded by any new NiFi installation. You will then need to go through your components and set the passwords again which will then get encrypted to the flow.xml.gz using the sensitive props key set on that NiFi. Hope this helps, Matt
... View more
02-13-2020
05:38 AM
@vikrant_kumar24 If you open a terminal window on your Windows server, can you execute your python script? If you are not successful from command line, the ExecuteStreamCommand processor is not going to be successful as well. Thanks, Matt
... View more
02-13-2020
05:31 AM
1 Kudo
@Umakanth NiFi components (Processors, controller services, reporting tasks, etc.) that have password properties do not support retrieving these passwords from an external source or service. NiFi not only obscures the passwords in the UI, but also encrypts all those passwords when they are written to disk in the flow.xml.gz. Additionally, for passwords entered in the various NiFi configuration files, NiFi offers and encrypt config toolkit that can encrypt all these sensitive properties in these configuration files on disk. I suggest maybe opening an Apache NiFi Jira with details around what you are trying to accomplish here for a possible future feature. - For passwords utilized through NiFi dataflow components, my thought here would be maybe around a NiFi controller service for connecting to such external services. This would also require that processors that would need to use this new NiFi Controller Service to retrieve passwords would all need to be modified as well with new configuration properties to interface with the new controller service. This is by no means a simple change in NiFi, but getting the idea out there with some strong use case for it can get the ball rolling in the community. Hope this helps, Matt
... View more
02-12-2020
01:15 PM
@chhaya_vishwaka It may be beneficially to other users since this thread/topic was so long, if you accept each response that helped directly with getting to your final working cluster. I am happy to hear that you are up and running. Now you get to explore the very granular authorizations/access policies NiFi provides within your secured cluster. Matt
... View more