Member since
07-19-2018
7
Posts
0
Kudos Received
0
Solutions
08-02-2018
09:39 AM
Hi @Seongmin Park The "NiFi Flow" itself is also a process group, see on the left hand side when you log in, note the Process group ID that belongs to my NiFi Flow. I will also set a var on the NiFi Flow and retrieve it with REST: Setting a random var on it; And getting the variable data of the NiFi Flow over REST: [root@c3175-node4 ~]# curl -i -X GET http://172.25.35.14:9090/nifi-api/process-groups/dadadbcd-0164-1000-16c1-6c50ce94361e/variable-registry
HTTP/1.1 200 OK
Date: Thu, 02 Aug 2018 09:34:52 GMT
Content-Type: application/json
Content-Length: 362
{"processGroupRevision":{"clientId":"f9e30047-0164-1000-e3ba-51b6ec77ae6f","version":3},"variableRegistry":{"variables":[{"variable":{"name":"FlowVarExample","value":"This is a flow variable example : - )","processGroupId":"dadadbcd-0164-1000-16c1-6c50ce94361e","affectedComponents":[]},"canWrite":true}],"processGroupId":"dadadbcd-0164-1000-16c1-6c50ce94361e"}}
... View more
12-26-2018
01:19 PM
@Yahya Najjar
Changing the value for "Initial Admin Identity" in your authorizers.xml after NiFi had already been started previously with a different value will not work. - On NiFi startup, the authorizer looks to see if the following files defined in your authorizers.xml already exist: <property name="Authorizations File">/<some path>/authorizations.xml</property><property name="Users File">/<some path>/users.xml</property> If they do exist, they will be used for authorization and new versions of these files will not be generated. - Even though you changed the "Initial Admin Identity" property value, it will result in any change being made to the above files. Since your existing setup already works with your original user certificate, I would suggest authenticating to your NiFi with that certificate and then adding your new user "admin" via the users UI from within the NiFi interface. - You can always delete/rename the existing "users.xml" and "authorizations.xml" files so that new copies are generated on startup, but keep in mind that you will lose and authorizations you may have manually added through the NiFi interface. Another option is to manually edit the "users.xml" file and change the original user based on your user certificate value to the new "admin" value. A restart would be needed for this change to be read in by NiFi. - Thank you, Matt - If you found this answer addressed your question, please take a moment to login in and click the "ACCEPT" link.
... View more
08-02-2018
01:28 AM
Thank you sir!
... View more