I used the command parameter -p=s4.metrics.config=csv:/root/workspace/fishApp/records:10:SECONDS . /root/workspace/fishApp/records is a directory. I created two nodes in my host.One node without the error,the other one with java.io.IOException. OMG,Where wrong? ------------------ ???????? ------------------ ??????: "baojian Zhou"<baojian.zhou.b...@gmail.com>; ????????: 2013??6??3??(??????) ????3:39 ??????: "s4-user"<s4-user@incubator.apache.org>;
????: Re: ?????? metrics 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 ?????? <654125...@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.b...@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 ?????? <654125...@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.