Sourav,
The command would like the following with substituting the relevant values.
curl -i -X PUT -H 'Content-Type: application/json' -d
'{"revision":{"version":<current-revision-version>,"clientId":"<your-client-id>"},"processor":{"id":"d6d28ec3-75c8-4194-b171-79c3e813f7e3","state":"STOPPED"}}'
http://localhost:8080/nifi-api/controller/process-groups/92e70e95-31c4-4eb3-beab-e6fd411378bd/processors/d6d28ec3-75c8-4194-b171-79c3e813f7e3
Also, check out this blog post that describes how NiFi uses optimistic
locking to know when another user has modified the data flow [1]. The
bottom contains a great sequence diagram describing the necessary values.
Matt
[1]
https://community.hortonworks.com/content/kbentry/3160/update-nifi-flow-on-the-fly-via-api.html
On Thu, Mar 10, 2016 at 11:57 PM, Sourav Gulati <[email protected]
> wrote:
> Hi Team,
>
> Is there a way to start and stop processor using some rest api or command
> line ? If yes, please provide the steps.
>
> Regards,
> Sourav Gulati
>
>
> ________________________________
>
>
>
>
>
>
> NOTE: This message may contain information that is confidential,
> proprietary, privileged or otherwise protected by law. The message is
> intended solely for the named addressee. If received in error, please
> destroy and notify the sender. Any use of this email is prohibited when
> received in error. Impetus does not represent, warrant and/or guarantee,
> that the integrity of this communication has been maintained nor that the
> communication is free of errors, virus, interception or interference.
>