incubator-s4-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From saradindu kar <saradindukar.i...@gmail.com>
Subject Re: how to set s4.metrics.config
Date Fri, 12 Jul 2013 14:07:19 GMT
I have also faced the same problem...


On Fri, Jul 12, 2013 at 7:31 PM, Jiaan Zeng <l.allen09@gmail.com> wrote:

> Hi,
>
> I wonder how to set the metrics parameter, i.e. s4.metrics.config,
> correctly. What I did is to specify
> -p=s4.metrics.config=csv:/path/to/directory:10:SECONDS while deploying
> the s4r archive to zookeeper. There are several problems here.
>
> 1) The csv option is not used. Metrics output is dumped to console.
> org.apache.s4.core.util.S4Metrics uses following pattern which means
> group 1 on this pattern is always "csv:sth" or "console".
>
>
> (csv:.+|console):(\\d+):(DAYS|HOURS|MICROSECONDS|MILLISECONDS|MINUTES|NANOSECONDS|SECONDS)
>
> In the init() function,  statement "String group1 = matcher.group(1);"
> always returns "csv:/path/to/directory". That means following
> statement "if ("csv".equals(group1))" is false.
>
> 2) How do I specify different csv files for different node since the
> output path is set in application level? The way I set this parameter
> make all the nodes use the same path stored in zookeeper.
>
> Thanks.
>
> --
> Regards,
> Jiaan
>

Mime
View raw message