I believe you will need to specify a state of "STOPPING" instead of
"STOPPED".  STOPPING signals the framework to initiate the change with
STOPPED being the end state after this transition.

On Wed, Feb 8, 2017 at 8:01 AM, maykiwogno <[email protected]> wrote:

> Thanks,
>
> before clear state, we need stop processor.
> Could you please tell me that missing in this payload, i retrieve HTTP 405
> ?
>
> {
>     "bulletins": [],
>     "component": {
>         },
>         "restricted": false,
>         "state": "STOPPED",
>         "style": {},
>         "supportsBatching": false,
>         "supportsEventDriven": false,
>         "supportsParallelProcessing": false,
>         "type": "org.apache.nifi.processors.hadoop.ListHDFS",
>         "validationErrors": []
>     },
>     "id": "b0c63454-89a8-15ef-be22-959bd4a72e5a",
>     "revision": {
>         "version": 5
>     },
> }
>
> curl -H "Content-type: application/json" -XPOST
> http://localhost:8080/nifi-api/processors/b0c63454-89a8-
> 15ef-be22-959bd4a72e5a
> -d @startListHDFS_1.json -v
>
>
>
>
> --
> View this message in context: http://apache-nifi-developer-
> list.39713.n7.nabble.com/How-restart-and-clear-state-for-
> listHDFS-processor-tp14616p14621.html
> Sent from the Apache NiFi Developer List mailing list archive at
> Nabble.com.
>

Reply via email to