Hi Rui, 1) Flink should always fetch records from Kafka if there some independent of the parallelism of the consumer. The only problem which could appear is that if you set the parallelism higher than the number of partitions, some of the source operators won't get a partition assigned. Due to that, they won't read data from Kafka. 2) numRecordsOutPerSecond should give you a good value for the throughput. 3) Could you check the logs whether the GraphiteReporter could be properly started? Maybe the reporter jar has not been put in the lib folder. Cheers, Till On Tue, Sep 25, 2018 at 11:30 AM Wang, Rui2 <[hidden email]> wrote:
|
Hi Till,
I have copy the flink-metrics-graphite-1.5.2.jar to lib/, and restart flink.It seems make no difference. When I checked the jobmanager log, the metrics configured in flink-conf.yaml, could be load since it printed as below: "2018-09-27 09:50:23,953 INFO org.apache.flink.configuration.GlobalConfiguration - Loading configuration property: metrics.reporters, varuy 2018-09-27 09:50:23,953 INFO org.apache.flink.configuration.GlobalConfiguration - Loading configuration property: metrics.reporters.varuy.host, tracing115 2018-09-27 09:50:23,953 INFO org.apache.flink.configuration.GlobalConfiguration - Loading configuration property: metrics.reporters.varuy.port, 2003 2018-09-27 09:50:23,953 INFO org.apache.flink.configuration.GlobalConfiguration - Loading configuration property: metrics.reporters.varuy.class, org.apache.flink.metrics.graphite.GraphiteReporter 2018-09-27 09:50:23,954 INFO org.apache.flink.configuration.GlobalConfiguration - Loading configuration property: metrics.reporters.varuy.interval, 1 SECONDS 2018-09-27 09:50:23,954 INFO org.apache.flink.configuration.GlobalConfiguration - Loading configuration property: metrics.reporters.varuy.protocol, TCP" However, I found the GraphiteReporter do not run correctly for the info list: "2018-09-27 09:50:24,938 INFO org.apache.flink.runtime.metrics.MetricRegistryImpl - No metrics reporter configured, no metrics will be exposed/reported." Should I install Graphite Server independently? Best Regards & Thanks Rui,Wang ----- stay hungry, stay foolish. -- Sent from: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/
stay hungry, stay foolish.
|
So there's 2 issues here:
1) your reporter configuration is wrong, configuration values for a specific reporter are prefixed with "metrics.reporter", not "metrics.reporters" (note the "s"). See below for a correct config. metrics.reporters: varuy metrics.reporter.varuy.host: tracing115 metrics.reporter.varuy.port: 2003 metrics.reporter.varuy.class: org.apache.flink.metrics.graphite.GraphiteReporter metrics.reporter.varuy.interval: 1 SECONDS metrics.reporter.varuy.protocol: TCP 2) The reporter only exports data to an external graphite server, so yes you have to start that one separately. On 27.09.2018 08:13, varuy322 wrote: > Hi Till, > > I have copy the flink-metrics-graphite-1.5.2.jar to lib/, and restart > flink.It seems make no difference. > When I checked the jobmanager log, the metrics configured in > flink-conf.yaml, could be load since it printed as below: > > "2018-09-27 09:50:23,953 INFO > org.apache.flink.configuration.GlobalConfiguration - Loading > configuration property: metrics.reporters, varuy > 2018-09-27 09:50:23,953 INFO > org.apache.flink.configuration.GlobalConfiguration - Loading > configuration property: metrics.reporters.varuy.host, tracing115 > 2018-09-27 09:50:23,953 INFO > org.apache.flink.configuration.GlobalConfiguration - Loading > configuration property: metrics.reporters.varuy.port, 2003 > 2018-09-27 09:50:23,953 INFO > org.apache.flink.configuration.GlobalConfiguration - Loading > configuration property: metrics.reporters.varuy.class, > org.apache.flink.metrics.graphite.GraphiteReporter > 2018-09-27 09:50:23,954 INFO > org.apache.flink.configuration.GlobalConfiguration - Loading > configuration property: metrics.reporters.varuy.interval, 1 SECONDS > 2018-09-27 09:50:23,954 INFO > org.apache.flink.configuration.GlobalConfiguration - Loading > configuration property: metrics.reporters.varuy.protocol, TCP" > > However, I found the GraphiteReporter do not run correctly for the info > list: > > "2018-09-27 09:50:24,938 INFO > org.apache.flink.runtime.metrics.MetricRegistryImpl - No metrics > reporter configured, no metrics will be exposed/reported." > > Should I install Graphite Server independently? > > Best Regards & Thanks > > Rui,Wang > > > > > ----- > stay hungry, stay foolish. > -- > Sent from: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/ > |
Free forum by Nabble | Edit this page |