incubator-s4-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From baojian Zhou <baojian.zhou.b...@gmail.com>
Subject Re: 回复: metrics
Date Mon, 03 Jun 2013 07:39:02 GMT
which method do you use? if you use the enable method make sure that:
 CsvReporter.enable(logDir, CSV_REPORTER_INTERVAL_S, TimeUnit.SECONDS);
the logDir is a directory.


2013/6/3 唐装鼠 <654125993@qq.com>

>
> I delete the local-vs-remote.csv.As a result,one node run without errors
> while the other one has the same error.I don't know where I'm wrong.
>
> ------------------ 原始邮件 ------------------
> *发件人:* "baojian Zhou"<baojian.zhou.buaa@gmail.com>;
> *发送时间:* 2013年6月3日(星期一) 下午3:26
> *收件人:* "s4-user"<s4-user@incubator.apache.org>; **
> *主题:* Re: metrics
>
>  i think if you system has already had the file local-vs-remote.csv or it
> maybe dose not work. before start the application you should delete the
> local-vs-remote.csv  first
>
>
> 2013/6/3 唐装鼠 <654125993@qq.com>
>
>> When I used the metrics,errors occured as below:
>>  java.io.IOException: Unable to create
>> /root/workspace/fishApp/records/local-vs-remote.csv
>>     at
>> com.yammer.metrics.reporting.CsvReporter.createStreamForMetric(CsvReporter.java:141)
>>     at
>> com.yammer.metrics.reporting.CsvReporter.getPrintStream(CsvReporter.java:257)
>>     at
>> com.yammer.metrics.reporting.CsvReporter.access$000(CsvReporter.java:22)
>>     at
>> com.yammer.metrics.reporting.CsvReporter$1.getStream(CsvReporter.java:156)
>>     at
>> com.yammer.metrics.reporting.CsvReporter.processGauge(CsvReporter.java:229)
>>     at
>> com.yammer.metrics.reporting.CsvReporter.processGauge(CsvReporter.java:22)
>>     at com.yammer.metrics.core.Gauge.processWith(Gauge.java:28)
>>     at com.yammer.metrics.reporting.CsvReporter.run(CsvReporter.java:163)
>>     at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>     at
>> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
>>     at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
>>     at
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
>>     at
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
>>     at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>     at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>     at java.lang.Thread.run(Thread.java:722)
>>
>> Other files created successfully.I don't know what lead to the error.Can
>> you help me?
>> Thanks.
>>
>>
>

Mime
View raw message