You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nifi.apache.org by 罗本华 <lu...@bbdservice.com> on 2016/05/04 12:22:26 UTC

Seek nifi help

hi Mr./Ms,
The previous period of time our team learned that nifi,and we all think that nifi is very useful.So our company decided to use the depth of the nifi.But when we use it these days,we encountered some problems with the ExecuteScript Processor,we do not know how to deal with the incoming data with python language.Can you give me an example for how to use ExecuteScript Processor with python language.thank you!!
Looking forward to your reply.
nifi learner

---------------------------------------------------------------------------------------成都数联铭品科技有限公司邮件法律声明:                                            本邮件所有信息及附件内容版权、知识产权归我公司所有,未经事先书面许可,禁止复制、转载、传播、储存。BRANDBIGDATA TECH. CO., LTD. EMAIL NOTICE:                                   The information and any attachments contained in this email is all copyright and intellectual property of our company reserved. Without prior written permission of any copy, reproduce,propagation or storage will be prohibited.------------------------------------------------------------------------------数联铭品|www.bbdservice.com成都 | 北京 | 上海 | 香港 | 纽约 | 新加坡 地址:四川|成都|天府大道中段199号|棕榈泉国际中心21层联系:TEL:+86 (28) 6529 0823 | 400 8273 348

Re: Seek nifi help

Posted by Matt Burgess <ma...@gmail.com>.
Welcome to NiFi, we are glad you are finding it useful.  The
ExecuteScript processor works with Jython (a Python interpreter for
the Java Virtual Machine), not the native Python language. That means
that native (C/C++) modules for Python will not be available, but
modules written in pure Python can be used.  There is a email thread
about this:

http://mail-archives.apache.org/mod_mbox/nifi-users/201603.mbox/%3CCAEV8zdV1hxLiu8JexFHy2jNv9T=HR3VqnDSPAR+qdne2Q4bakA@mail.gmail.com%3E

Also I have posted an article on my blog with a Jython example with
ExecuteScript, Bryan sent the link in a previous email
(http://funnifi.blogspot.com/2016/03/executescript-json-to-json-revisited_14.html)

There are some examples in the unit tests as well:
https://github.com/apache/nifi/tree/master/nifi-nar-bundles/nifi-scripting-bundle/nifi-scripting-processors/src/test/resources/jython

Regards,
Matt

On Wed, May 4, 2016 at 8:22 AM, 罗本华 <lu...@bbdservice.com> wrote:
> hi Mr./Ms,
> The previous period of time our team learned that nifi,and we all think that nifi is very useful.So our company decided to use the depth of the nifi.But when we use it these days,we encountered some problems with the ExecuteScript Processor,we do not know how to deal with the incoming data with python language.Can you give me an example for how to use ExecuteScript Processor with python language.thank you!!
> Looking forward to your reply.
> nifi learner
>
> ---------------------------------------------------------------------------------------成都数联铭品科技有限公司邮件法律声明:                                            本邮件所有信息及附件内容版权、知识产权归我公司所有,未经事先书面许可,禁止复制、转载、传播、储存。BRANDBIGDATA TECH. CO., LTD. EMAIL NOTICE:                                   The information and any attachments contained in this email is all copyright and intellectual property of our company reserved. Without prior written permission of any copy, reproduce,propagation or storage will be prohibited.------------------------------------------------------------------------------数联铭品|www.bbdservice.com成都 | 北京 | 上海 | 香港 | 纽约 | 新加坡 地址:四川|成都|天府大道中段199号|棕榈泉国际中心21层联系:TEL:+86 (28) 6529 0823 | 400 8273 348

Re: Seek nifi help

Posted by Bryan Bende <bb...@gmail.com>.
Hello,

This blog has an example using Jython:

http://funnifi.blogspot.com/2016/03/executescript-json-to-json-revisited_14.html

Thanks,

Bryan

On Wed, May 4, 2016 at 8:22 AM, 罗本华 <lu...@bbdservice.com> wrote:

> hi Mr./Ms,
> The previous period of time our team learned that nifi,and we all think
> that nifi is very useful.So our company decided to use the depth of the
> nifi.But when we use it these days,we encountered some problems with the
> ExecuteScript Processor,we do not know how to deal with the incoming data
> with python language.Can you give me an example for how to use
> ExecuteScript Processor with python language.thank you!!
> Looking forward to your reply.
> nifi learner
>
> ---------------------------------------------------------------------------------------成都数联铭品科技有限公司邮件法律声明:
>
> 本邮件所有信息及附件内容版权、知识产权归我公司所有,未经事先书面许可,禁止复制、转载、传播、储存。BRANDBIGDATA TECH. CO.,
> LTD. EMAIL NOTICE:                                   The information and
> any attachments contained in this email is all copyright and intellectual
> property of our company reserved. Without prior written permission of any
> copy, reproduce,propagation or storage will be
> prohibited.------------------------------------------------------------------------------数联铭品|
> www.bbdservice.com成都 | 北京 | 上海 | 香港 | 纽约 | 新加坡
> 地址:四川|成都|天府大道中段199号|棕榈泉国际中心21层联系:TEL:+86 (28) 6529 0823 | 400 8273 348