Looks like a docs typo on the wiki: What you need is CONFIG_PUT(“PROFILER”, profilerConfig)
Simon > On 15 Jan 2018, at 10:45, Farrukh Naveed Anjum <anjum.farr...@gmail.com> > wrote: > > Can you help on this ? > > On Mon, Jan 15, 2018 at 3:42 PM, Farrukh Naveed Anjum > <anjum.farr...@gmail.com> wrote: > Any Idea of getting ride of this problem ? > > On Mon, Jan 15, 2018 at 3:38 PM, Farrukh Naveed Anjum > <anjum.farr...@gmail.com> wrote: > Hi, > > I am trying to setup up Metron Reference Application (SQUID) Example given on > main metron website. > > I am facing a problem during (Profiling Your Streams ) Config_Put Step > > > CONFIG_PUT(profilerConfig) > > It causes to display following error > > [!] No enum constant > org.apache.metron.common.configuration.ConfigurationType.{ > "profiles": [ > { > "profile": "squid-miss", > "foreach": "ip_src_addr", > "onlyif": "source.type == 'squid' and action == 'TCP_MISS'", > "update": { > "m": "STATS_ADD(m, 1)" > }, > "result": "m" > }, > { > "profile": "url-length", > "foreach": "ip_src_addr", > "onlyif": "source.type == 'squid'", > "update": { > "m": "STATS_ADD(m, LENGTH(url))" > }, > "result": "m" > } > ] > } > java.lang.IllegalArgumentException: No enum constant > org.apache.metron.common.configuration.ConfigurationType.{ > "profiles": [ > { > "profile": "squid-miss", > "foreach": "ip_src_addr", > "onlyif": "source.type == 'squid' and action == 'TCP_MISS'", > "update": { > "m": "STATS_ADD(m, 1)" > }, > "result": "m" > }, > { > "profile": "url-length", > "foreach": "ip_src_addr", > "onlyif": "source.type == 'squid'", > "update": { > "m": "STATS_ADD(m, LENGTH(url))" > }, > "result": "m" > } > ] > } > at java.lang.Enum.valueOf(Enum.java:238) > at > org.apache.metron.common.configuration.ConfigurationType.valueOf(ConfigurationType.java:31) > at > org.apache.metron.management.ConfigurationFunctions$ConfigPut.apply(ConfigurationFunctions.java:269) > at > org.apache.metron.stellar.common.StellarCompiler.lambda$exitTransformationFunc$13(StellarCompiler.java:556) > at > org.apache.metron.stellar.common.StellarCompiler$Expression.apply(StellarCompiler.java:160) > at > org.apache.metron.stellar.common.BaseStellarProcessor.parse(BaseStellarProcessor.java:152) > at > org.apache.metron.stellar.common.shell.StellarExecutor.execute(StellarExecutor.java:287) > at > org.apache.metron.stellar.common.shell.StellarShell.handleStellar(StellarShell.java:270) > at > org.apache.metron.stellar.common.shell.StellarShell.execute(StellarShell.java:409) > 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) > > > How can I solve this problem > > -- > With Regards > Farrukh Naveed Anjum > > > > -- > With Regards > Farrukh Naveed Anjum > > > > -- > With Regards > Farrukh Naveed Anjum