mmiklavc commented on issue #1436: METRON-2149: Shaded jar classifier is not 
consistent
URL: https://github.com/apache/metron/pull/1436#issuecomment-524061914
 
 
   @merrimanr How did you get through the instructions for 
https://github.com/apache/metron/tree/master/use-cases/typosquat_detection? I 
just ran up to the Stellar Bloom Filter test and am running into a stacktrace 
from the `OBJECT_GET` global cache size.
   
   ```
   [Stellar]>>> BLOOM_EXISTS(OBJECT_GET('/tmp/reference/alexa10k_filter.ser'), 
'gogle')
   [!] Unable to parse: 
BLOOM_EXISTS(OBJECT_GET('/tmp/reference/alexa10k_filter.ser'), 'gogle') due to: 
File at path '/tmp/reference/alexa10k_filter.ser' is larger than the configured 
max file size of 1048576
   org.apache.metron.stellar.dsl.ParseException: Unable to parse: 
BLOOM_EXISTS(OBJECT_GET('/tmp/reference/alexa10k_filter.ser'), 'gogle') due to: 
File at path '/tmp/reference/alexa10k_filter.ser' is larger than the configured 
max file size of 1048576
        at 
org.apache.metron.stellar.common.BaseStellarProcessor.createException(BaseStellarProcessor.java:166)
        at 
org.apache.metron.stellar.common.BaseStellarProcessor.parse(BaseStellarProcessor.java:154)
        at 
org.apache.metron.stellar.common.shell.DefaultStellarShellExecutor.executeStellar(DefaultStellarShellExecutor.java:407)
        at 
org.apache.metron.stellar.common.shell.DefaultStellarShellExecutor.execute(DefaultStellarShellExecutor.java:257)
        at 
org.apache.metron.stellar.common.shell.cli.StellarShell.execute(StellarShell.java:359)
        at org.jboss.aesh.console.AeshProcess.run(AeshProcess.java:53)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
   Caused by: java.lang.IllegalArgumentException: File at path 
'/tmp/reference/alexa10k_filter.ser' is larger than the configured max file 
size of 1048576
        at 
org.apache.metron.enrichment.cache.ObjectCache$Loader.load(ObjectCache.java:72)
        at 
org.apache.metron.enrichment.cache.ObjectCache$Loader.load(ObjectCache.java:46)
        at 
com.github.benmanes.caffeine.cache.BoundedLocalCache$BoundedLocalLoadingCache.lambda$new$0(BoundedLocalCache.java:3366)
        at 
com.github.benmanes.caffeine.cache.BoundedLocalCache.lambda$doComputeIfAbsent$14(BoundedLocalCache.java:2039)
        at 
java.util.concurrent.ConcurrentHashMap.compute(ConcurrentHashMap.java:1853)
        at 
com.github.benmanes.caffeine.cache.BoundedLocalCache.doComputeIfAbsent(BoundedLocalCache.java:2037)
        at 
com.github.benmanes.caffeine.cache.BoundedLocalCache.computeIfAbsent(BoundedLocalCache.java:2020)
        at 
com.github.benmanes.caffeine.cache.LocalCache.computeIfAbsent(LocalCache.java:112)
        at 
com.github.benmanes.caffeine.cache.LocalLoadingCache.get(LocalLoadingCache.java:67)
        at 
org.apache.metron.enrichment.cache.ObjectCache.get(ObjectCache.java:82)
        at 
org.apache.metron.enrichment.stellar.ObjectGet.apply(ObjectGet.java:66)
        at 
org.apache.metron.stellar.common.StellarCompiler.lambda$exitTransformationFunc$13(StellarCompiler.java:664)
        at 
org.apache.metron.stellar.common.StellarCompiler$Expression.apply(StellarCompiler.java:259)
        at 
org.apache.metron.stellar.common.BaseStellarProcessor.parse(BaseStellarProcessor.java:151)
        ... 7 more
   ```
   
   I took a spin back through https://github.com/apache/metron/pull/1399 and it 
looks like the README documentation about the config options, neither local to 
the Stellar function nor globally, ever made it into a PR. Added a bug to track 
it here 
https://issues.apache.org/jira/browse/METRON-2228https://issues.apache.org/jira/browse/METRON-2228

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to