You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@nifi.apache.org by BD International <b....@gmail.com> on 2017/02/21 19:51:32 UTC

Execute script and python

Hello,

I am creating some python scripts which run within the ExecuteScript
processor. So far I've been working out what to do by looking at hello
world examples like:

https://community.hortonworks.com/articles/35568/python-script-in-nifi.html

I've been able to do what I need to I just wanted to check if there was any
documentation about best practise for writing scripts or tips to best use
any nifi features?

Thanks

Brian

Re: Execute script and python

Posted by BD International <b....@gmail.com>.
Matt,

WOW those resources are amazing thanks for the links!

Brian


On 21 Feb 2017 20:06, "Matt Burgess" <ma...@apache.org> wrote:

Brian,

There is still an open Jira issue [1] to add Additional Details to the
scripting processors, which should include such best practices /
pro-tips.  In the meantime, besides my blog (thanks for the shout-out
Bryan R!), I wrote a series of articles [2] [3] [4] describing various
NiFi API methods with examples in many of the supported languages.
Also, there are tips and examples in the archives for this (the
users') and the dev email lists, shared by folks in the community.

Regards,
Matt

[1] https://issues.apache.org/jira/browse/NIFI-1954
[2] https://community.hortonworks.com/articles/75032/
executescript-cookbook-part-1.html
[3] https://community.hortonworks.com/articles/75545/
executescript-cookbook-part-2.html
[4] https://community.hortonworks.com/content/kbentry/77739/
executescript-cookbook-part-3.html


On Tue, Feb 21, 2017 at 2:57 PM, Bryan Rosander <br...@apache.org>
wrote:
> Hey Brian,
>
> One good resource around the ExecuteScript processor is Matt Burgess' blog
> [1]. Matt wrote the ExecuteScript processor and has a bunch of how-to
guides
> there.
>
> [1] http://funnifi.blogspot.com/
>
> Thanks,
> Bryan
>
> On Tue, Feb 21, 2017 at 2:51 PM, BD International
> <b....@gmail.com> wrote:
>>
>> Hello,
>>
>> I am creating some python scripts which run within the ExecuteScript
>> processor. So far I've been working out what to do by looking at hello
world
>> examples like:
>>
>>
>> https://community.hortonworks.com/articles/35568/python-
script-in-nifi.html
>>
>> I've been able to do what I need to I just wanted to check if there was
>> any documentation about best practise for writing scripts or tips to best
>> use any nifi features?
>>
>> Thanks
>>
>> Brian
>
>

Re: Execute script and python

Posted by Matt Burgess <ma...@apache.org>.
Brian,

There is still an open Jira issue [1] to add Additional Details to the
scripting processors, which should include such best practices /
pro-tips.  In the meantime, besides my blog (thanks for the shout-out
Bryan R!), I wrote a series of articles [2] [3] [4] describing various
NiFi API methods with examples in many of the supported languages.
Also, there are tips and examples in the archives for this (the
users') and the dev email lists, shared by folks in the community.

Regards,
Matt

[1] https://issues.apache.org/jira/browse/NIFI-1954
[2] https://community.hortonworks.com/articles/75032/executescript-cookbook-part-1.html
[3] https://community.hortonworks.com/articles/75545/executescript-cookbook-part-2.html
[4] https://community.hortonworks.com/content/kbentry/77739/executescript-cookbook-part-3.html


On Tue, Feb 21, 2017 at 2:57 PM, Bryan Rosander <br...@apache.org> wrote:
> Hey Brian,
>
> One good resource around the ExecuteScript processor is Matt Burgess' blog
> [1]. Matt wrote the ExecuteScript processor and has a bunch of how-to guides
> there.
>
> [1] http://funnifi.blogspot.com/
>
> Thanks,
> Bryan
>
> On Tue, Feb 21, 2017 at 2:51 PM, BD International
> <b....@gmail.com> wrote:
>>
>> Hello,
>>
>> I am creating some python scripts which run within the ExecuteScript
>> processor. So far I've been working out what to do by looking at hello world
>> examples like:
>>
>>
>> https://community.hortonworks.com/articles/35568/python-script-in-nifi.html
>>
>> I've been able to do what I need to I just wanted to check if there was
>> any documentation about best practise for writing scripts or tips to best
>> use any nifi features?
>>
>> Thanks
>>
>> Brian
>
>

Re: Execute script and python

Posted by Bryan Rosander <br...@apache.org>.
Hey Brian,

One good resource around the ExecuteScript processor is Matt Burgess' blog
[1]. Matt wrote the ExecuteScript processor and has a bunch of how-to
guides there.

[1] http://funnifi.blogspot.com/

Thanks,
Bryan

On Tue, Feb 21, 2017 at 2:51 PM, BD International <
b.deep.international@gmail.com> wrote:

> Hello,
>
> I am creating some python scripts which run within the ExecuteScript
> processor. So far I've been working out what to do by looking at hello
> world examples like:
>
> https://community.hortonworks.com/articles/35568/python-
> script-in-nifi.html
>
> I've been able to do what I need to I just wanted to check if there was
> any documentation about best practise for writing scripts or tips to best
> use any nifi features?
>
> Thanks
>
> Brian
>