Re: Re: Re: Re: 答复: Re: Is there a REST API to run a dataflow on demand?

2018-02-22 Thread Sivaprasanna
I believe even if it is where to be made available as part of NiFi REST API, I think it is internally going to call the start and stop APIs. On Fri, 23 Feb 2018 at 6:54 AM, wrote: > Yes, that is what I do currently. > > But I think it will be better if NiFi can support this

答复: Re: Re: Re: 答复: Re: Is there a REST API to run a dataflow on demand?

2018-02-22 Thread luby
Yes, that is what I do currently. But I think it will be better if NiFi can support this feature natively. 发件人: "Andrew Grande" 收件人: dev@nifi.apache.org 日期: 2018/02/23 09:07 主题: Re: Re: Re: 答复: Re: Is there a REST API to run a dataflow on demand? One could write a

Re: Re: Re: 答复: Re: Is there a REST API to run a dataflow on demand?

2018-02-22 Thread Andrew Grande
One could write a script and call it in 1 step. I don't believe there is anything available OOTB. Andrew On Thu, Feb 22, 2018, 7:58 PM wrote: > Thanks a lot for your help. > > Yes. that is what I do to trigger a dataflow on demand. > But I want to know if there is an API

Re: Re: 答复: Re: Is there a REST API to run a dataflow on demand?

2018-02-22 Thread Daniel Chaffelson
Hi Boying, I have been working on a NiFi Python Client SDK that might help you here, as the goal is to be able to replicate everyday actions taken in the NiFi GUI as well as extending it for CICD/SDLC work. For example with the following commands you would: 1. get the reference object for a

答复: Re: 答复: Re: Is there a REST API to run a dataflow on demand?

2018-02-21 Thread luby
Thanks very much, I'll try your suggestions. 发件人: James Wing 收件人: NiFi Dev List 日期: 2018/02/22 14:05 主题: Re: 答复: Re: Is there a REST API to run a dataflow on demand? The NiFi API can be used to start and stop processors or process groups, and this

Re: 答复: Re: Is there a REST API to run a dataflow on demand?

2018-02-21 Thread James Wing
The NiFi API can be used to start and stop processors or process groups, and this might solve your use case. But NiFi does not have an API to run a processor only once, immediately, separate from its configured schedule. I have solved similar problems in the past by creating two separate

Re: 答复: Re: Is there a REST API to run a dataflow on demand?

2018-02-21 Thread Charlie Meyer
Hi, I've found the rest api was designed to support actions that can be done from the UI and too much much beyond. That being said, if you can do it from the UI, you can write up code to mimic that via the rest api. So, to accomplish the task you are looking to do, you might need to write code

答复: Re: Is there a REST API to run a dataflow on demand?

2018-02-21 Thread luby
Thanks a lot. But I want to know if there is a REST API that triggers a dataflow on demand? I don't find the API in the page. 发件人: Charlie Meyer 收件人: dev@nifi.apache.org 日期: 2018/02/22 09:36 主题: Re: Is there a REST API to run a dataflow on demand? Yep,