Member since
05-24-2016
45
Posts
4
Kudos Received
0
Solutions
06-14-2017
02:35 PM
@Matt Clarke The second suggestion works as well. I kepp the third one for a next usage. Thanks for all Matt TV.
... View more
06-14-2017
12:59 PM
@Matt Clarke Thanks for these suggestions. I'm going to try number 2. And could you give me an example of properties for the number 3 and detectduplicate processor ? Thanks, TV
... View more
06-14-2017
12:12 PM
1 Kudo
Hi everybody, I use Nifi 1.0.0 on AIX server. My ListFile processor gives the same file in two different dataflows. It schedules every 15 seconds. The file O27853044.1135 begins to fill at 11:35 and ends at 11:45. Is it normal that the processor creates a dataflow at 11:42 ? How avoid ListFile processor to create a dataflow before the end of file's update ? Thanks for you help
... View more
Labels:
- Labels:
-
Apache NiFi
05-23-2017
06:23 AM
@Wynner Hi, Memory settings already to 8Go for both. This morning I tried to set Number min and max of Entries and it works !!! Thanks for your help Wynner. Regards Parameters set (so the merge create about 1000 files) Minimum Number of Entries
1
Maximum Number of Entries
2500
Minimum Group Size
0 B
Maximum Group Size
No value set
Max Bin Age
5 min
Maximum number of Bins
100
Delimiter Strategy
Text
... View more
05-22-2017
01:14 PM
@Wynner Thanks for your feddback, Here are the properties (I've also tried with 200MB before but it doesn't work). Merge
Strategy Bin-Packing
Algorithm Merge
Format Binary
Concatenation Attribute
Strategy Keep Only Common
Attributes Correlation
Attribute Name No value set Minimum
Number of Entries 1 Maximum
Number of Entries No value set Minimum
Group Size 20 MB Maximum
Group Size 20 MB Max Bin Age
5 min Maximum
number of Bins 100 Delimiter
Strategy Text Header No value set Footer No
value set Demarcator Compression
Level 1 Keep Path false After an hour Nifi fails with a outOfmemory 2017-05-22 12:35:44,770 WARN [NiFi Web Server-22-acceptor-0@2c439296-ServerConnector@ccf1486{HTTP/1.1,[http/1.1]}{0.0.0.0:28080}] o.eclipse.jetty.server.AbstractConnector
java.lang.OutOfMemoryError: Java heap space
2017-05-22 12:35:44,784 WARN [NiFi Web Server-21] org.eclipse.jetty.servlet.ServletHandler Error for /nifi-api/flow/controller/bulletins
java.lang.OutOfMemoryError: Java heap space
at java.lang.StringBuilder.toString(StringBuilder.java:407) ~[na:1.8.0_66]
at java.net.Inet4Address.numericToTextFormat(Inet4Address.java:373) ~[na:1.8.0_66]
at java.net.Inet4Address.getHostAddress(Inet4Address.java:328) ~[na:1.8.0_66]
at org.eclipse.jetty.server.Request.getRemoteAddr(Request.java:1193) ~[na:na]
at javax.servlet.ServletRequestWrapper.getRemoteAddr(ServletRequestWrapper.java:275) ~[javax.servlet-api-3.1.0.jar:3.1.0]
at org.apache.nifi.web.filter.RequestLogger.doFilter(RequestLogger.java:62) ~[classes/:na]
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1676) ~[na:na]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:316) ~[spring-security-web-4.0.3.RELEASE.jar:4.0.3.RELEASE]
... View more
05-22-2017
10:04 AM
Exactlty The queue after GetMongo has 2,500,000,evt (1,3GB). The following processor (MergeContent) can not empty this queue. And I don't understand why ?
... View more
05-19-2017
02:53 PM
I've set it to 100 or 1000 or 2000. After about 10 minutes, the processor reads with success all the collection but in one shot and whatever the value of the propoerty. Is it normal ?
... View more
05-19-2017
09:17 AM
Hi, I try to get 2,500,000 records from a MongoDB collection with 1. these parameters in bootstrap.conf # JVM memory settings java.arg.2=-Xms6144m java.arg.3=-Xmx6144m 2.the following properties processor SSL Context Service
No value set
Client Auth NONE Query
No value set Projection
No value set Sort
No value set Limit No value set Batch Size
No value set and with 2 concurrent tasks scheduling I've tried wtih 4Go, then 6Go for the memory settings. Nifi failed with OutofMemory errors With 4Go - Starting GetMongo processor at 09:05 and Error at 09:24 2017-05-19 09:24:40,150 ERROR [Timer-Driven
Process Thread-4] o.a.nifi.processors.mongodb.GetMongo
GetMongo[id=4ee5171c-1006-115b-5dc0-6ef54c1e9a73]
GetMongo[id=4ee5171c-1006-115b-5dc0-6ef54c1e9a73] failed to process due to
java.lang.OutOfMemoryError: Java heap space; rolling back session:
java.lang.OutOfMemoryError: Java heap space 2017-05-19 09:24:40,167 ERROR [Timer-Driven
Process Thread-4] o.a.nifi.processors.mongodb.GetMongo java.lang.OutOfMemoryError : Java heap space With 6Go - Starting GetMongo processor at 09:42 and Error at 10:28 2017-05-19
10:28:50,336 ERROR [NiFi logging handler] org.apache.nifi.StdErr 2017-05-19
10:28:50,337 ERROR [NiFi logging handler] org.apache.nifi.StdErr Exception:
java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread
"pool-2-thread-1" Do you have any suggestions to help me ? Thanks
... View more
Labels:
- Labels:
-
Apache NiFi
06-23-2016
09:24 AM
Hi @Pierre Villard Thanks for your answer.
... View more
06-23-2016
09:17 AM
Hi @jwit The idea is to match on multiple files. Instead of create several processors with one file to tail for each one, I'd like to create only one processor with a "pattern" to tail which adresses several files. Obviously, we except for each flow ingested the right properties "path, filename ... " of the original file tailed in this flow. So the properties values may change with each flow. Let me know if it's clear to you. Thanks
... View more