Re: Re: dose nifi suport Regular Expression capturing groups text using Nifi Expression Language
it realy helps me, thanks James. can you give some tips on how can i get more specific document about how to use a processor, as the doc on nifi-website is very simple. Best Regards YuNing From: James Wing Date: 2017-10-01 00:18 To: NiFi Dev List Subject: Re: dose nifi suport Regular Expression capturing groups text using Nifi Expression Language I believe the Replacement Value field should be set to something like this: ${'$1':jsonPath("$.data.orgcode")} We may be able to help more if you can provide some sample content and regular expression you are using. Thanks, James On Fri, Sep 29, 2017 at 7:16 PM, YuNing <bel...@163.com> wrote: > > when i use replace text i want to use :jsonPath('') funciton for > Regular Expression capturing group; the Replacement Value i set is > "$1:jsonPath('$.data.orgcode')", but it didn't work. > i didn't want to use EvaluateJsonPath , because it couldn't evalue > mulit-line json sting,can anyone help me. > > wait for your early replay! > > > > > Best Regards > YuNing >
dose nifi suport Regular Expression capturing groups text using Nifi Expression Language
when i use replace text i want to use :jsonPath('') funciton for Regular Expression capturing group; the Replacement Value i set is "$1:jsonPath('$.data.orgcode')", but it didn't work. i didn't want to use EvaluateJsonPath , because it couldn't evalue mulit-line json sting,can anyone help me. wait for your early replay! Best Regards YuNing
回复: How to reinstall NiFi
with the default configuration nfi store all it's data under the install folder (in your case is /opt/nifi). so you can delete '/opt/nifi' and reinstall. Best Regards YuNing 发件人: Lu boying 发送时间: 2017-09-25 19:51 收件人: dev@nifi.apache.org 主题: How to reinstall NiFi Hi, All, I'm using NiFi 1.3 (on Ubuntue Linux) and want to clean up all my data in NiFi. My NiFi is installed under /opt/nifi. Is it enough to just deleting everything under /opt/nifi and reinstall it? Thanks Boying
Re: Re: a question about nifi's source code
I fround the problem, recently. there is no existance check of tenants before doUpdateGroup() at the most recent version on github. but it checks at nifi-1.3.0 release version. you can see this at https://github.com/apache/nifi/blob/rel/nifi-1.3.0/nifi-framework-api/src/main/java/org/apache/nifi/authorization/AbstractPolicyBasedAuthorizer.java and it doesn't seams to be a bug ,because everything just works fine. Best Regards YuNing From: YuNing Date: 2017-08-02 14:43 To: dev Subject: Re: Re: a question about nifi's source code Hi,Andy It seems I found the problems, I compare the sourcecode which i am viewing to the sourcecode on github, it appears to be different, and i am confused, because i didn't change it myslf, i will keep this update as long as i found the reason. thanks you very much. Best Regards YuNing From: Andy LoPresto Date: 2017-08-02 14:01 To: dev Subject: Re: a question about nifi's source code Hi YuNing, The Abstract policy authorizer delegates the updateGroup action to doUpdateGroup, which is implemented by the extending concrete class. I'm not sure where you are seeing that it checks for the absence of the group, but there is an addGroup method for adding a new group. Andy LoPresto alopre...@apache.org alopresto.apa...@gmail.com PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4 BACE 3C6E F65B 2F7D EF69 > On Aug 1, 2017, at 19:48, YuNing <bel...@163.com> wrote: > > Hello,everyone >I am work on reading nifi's source code . it confuse me when i read > the class "AbstractPolicyBasedAuthorizer", I found there is no method to add > a user to an existing group. I noticed there is an "updateGroup" method > ,which i don't think can be used to add users to existing group, because it > checks the input group to make sure it didn't exist. >Am i right? can anyone help me, thanks alot ! > > Best Regards > YuNing >
Date format method in NiFi Expression Language doesn't support negative timestamp
Hello,Everyone Now i found the date format method in NiFi Expression Language doesn't support negative timestamp which means the time before 1970.01.01 . Is there any idea on how to achieve this, and can I define my own NiFi Expression Language. Thanks for your early reply. Best Regards YuNing