Member since
10-22-2019
15
Posts
0
Kudos Received
1
Solution
My Accepted Solutions
Title | Views | Posted |
---|---|---|
2366 | 11-08-2023 02:51 AM |
11-08-2023
02:51 AM
Hello @MattWho I found the solution is to add updateAttribute: attr1=${attr1:evaluateELString()}
... View more
11-08-2023
12:37 AM
Hello @MattWho My problem is like what you sad But I have big number of expressions and can be added at any time so I want at every change go to the processor and add new expression, so my solution was to create file that contains all expressions and with python write its to attr1
... View more
11-07-2023
12:46 AM
@MattWho Hello So I have a file that contains multiple properties like this : ${filename:find('OD_FUS.*.gz'):ifElse("/isod/brt_fin_fd_OD_FUS_pipe_sep", ${filename:find('OD_NCE.*.gz'):ifElse("/isod/brt_fin_fd_OD_NCE_pipe_sep", ${filename:find('DATA_Liste_Partenaire.*.gz'):ifElse("/baccarat/brt_fin_rn_partenaire","notfind")})})} I developed python script that read this file and assign all this content on attribute attr1 And my flow read multiple files and will check if the file match any pattern from will give him destination in HDFS example: filename=OD_FUS20231010.gz.20231010.csv attr1 will have the value "/isod/brt_fin_fd_OD_FUS_pipe_sep" and if the filename does not exists attr1 will have "notfind" But now when I write the expression to attr1 he taked it as string he didn't execute it like this ${filename:find('OD_FUS.*.gz'):ifElse("/isod/brt_fin_fd_OD_FUS_pipe_sep", ${filename:find('OD_NCE.*.gz'):ifElse("/isod/brt_fin_fd_OD_NCE_pipe_sep", ${filename:find('DATA_Liste_Partenaire.*.gz'):ifElse("/baccarat/brt_fin_rn_partenaire","notfind")})})}
... View more
11-06-2023
08:46 AM
Hello All I need your Helps I have a flowfile attribute with this expression attr1="${filename:find('OD_NCE.*.gz'):ifElse("/isod/brt_fin_fd_OD_NCE_pipe_sep","notfind")}" I want to have the value of expression not the string How I can execute this. For Information : I read this expression from file and after this I convert the content to attributes
... View more
Labels:
- Labels:
-
Apache NiFi
10-02-2023
02:10 AM
@joseomjr I didn't found the code that unzip the content of flowfile and send the unzipped files multiple flowfiles
... View more
10-02-2023
02:09 AM
@MattWho yes the zipfile contains mutltiple floders that contain files
... View more
09-26-2023
07:31 AM
I can't upgrade the version of NiFi. the error I encountered with UnpackContent : Unable to unpack StandardFlowFileRecord[uuid=e94fb414-7fb3-441a-8294-89e2766633a4,claim=StandardContentClaim [resourceClaim=StandardResourceClaim[id=1695735090062-1030, container=default, section=6], offset=0, length=6002134],offset=0,name=outBI.zip,size=6002134] because it does not appear to have any entries; routing to failure Example of python script that I have executed with ExecuteStreamCommand : import zipfile import sys import gzip import os import io zip_folder= sys.stdin.buffer.read() with zipfile.ZipFile(io.BytesIO(zip_folder), 'r') as zip_folder: for file_info in zip_folder.infolist(): file_name = file_info.filename # Read the content of the file file_content = zip_folder.read(file_name) # Print the content to stdout (standard output) sys.stdout.buffer.write(file_content) sys.stdout.buffer.write(b'\n') sys.stdout.flush()
... View more
09-26-2023
06:35 AM
@cotopaul The compression format is .zip. The CompressContent doesn't work with zip format
... View more
09-26-2023
02:55 AM
Hello I need help I want to unzip file.zip with NiFi I have used unpackContent processor but that didn't work because of my nifi version 1.13 I have also used executeStreamCommand to execute python script but I didn't found until now the solution Can you help me Thanks
... View more
Labels:
- Labels:
-
Apache NiFi
10-25-2019
01:10 AM
@Gopinath When I turn off wifi. [root@master ~]# nslookup master.example.com Server: 127.0.0.1 Address: 127.0.0.1#53 Name: master.example.com Address: 192.168.180.144 then when wifi is ON [root@master ~]# nslookup master.example.com Server: 192.168.180.2 Address: 192.168.180.2#53 ** server can't find master.example.com: NXDOMAIN
... View more