Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 01FD9200C60 for ; Mon, 24 Apr 2017 19:46:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 00D54160BA5; Mon, 24 Apr 2017 17:46:08 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 45ADF160B93 for ; Mon, 24 Apr 2017 19:46:07 +0200 (CEST) Received: (qmail 60647 invoked by uid 500); 24 Apr 2017 17:46:06 -0000 Mailing-List: contact commits-help@beam.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@beam.apache.org Delivered-To: mailing list commits@beam.apache.org Received: (qmail 60638 invoked by uid 99); 24 Apr 2017 17:46:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Apr 2017 17:46:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id EA16B1AFFD3 for ; Mon, 24 Apr 2017 17:46:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id G8dtG6TJzdgI for ; Mon, 24 Apr 2017 17:46:05 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id CEB2C5F342 for ; Mon, 24 Apr 2017 17:46:04 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 65A88E07D3 for ; Mon, 24 Apr 2017 17:46:04 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 1D24D21B53 for ; Mon, 24 Apr 2017 17:46:04 +0000 (UTC) Date: Mon, 24 Apr 2017 17:46:04 +0000 (UTC) From: "Davor Bonaci (JIRA)" To: commits@beam.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (BEAM-2056) Add tests for exporting Beam Metrics to Flink Metrics MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 24 Apr 2017 17:46:08 -0000 [ https://issues.apache.org/jira/browse/BEAM-2056?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15981566#comment-15981566 ] Davor Bonaci commented on BEAM-2056: ------------------------------------ (fixing accidental change) > Add tests for exporting Beam Metrics to Flink Metrics > ----------------------------------------------------- > > Key: BEAM-2056 > URL: https://issues.apache.org/jira/browse/BEAM-2056 > Project: Beam > Issue Type: Improvement > Components: runner-flink > Reporter: Aljoscha Krettek > Assignee: Aljoscha Krettek > Fix For: First stable release > > > There are currently no tests that verify that metrics that are reported using the Beam Metrics API are forwarded to Flink and a {{MetricReporter}}. > A test for this would have to manually configure a Flink "Mini Cluster", as in > {code} > // start also a re-usable Flink mini cluster > flink = new LocalFlinkMiniCluster(getFlinkConfiguration(), false); > flink.start(); > flinkPort = flink.getLeaderRPCPort(); > {code} > with {{getFlinkConfiguration()}}: > {code} > protected static Configuration getFlinkConfiguration() { > Configuration flinkConfig = new Configuration(); > flinkConfig.setInteger(ConfigConstants.LOCAL_NUMBER_TASK_MANAGER, 1); > flinkConfig.setInteger(ConfigConstants.TASK_MANAGER_NUM_TASK_SLOTS, 8); > flinkConfig.setInteger(ConfigConstants.TASK_MANAGER_MEMORY_SIZE_KEY, 16); > flinkConfig.setString(ConfigConstants.RESTART_STRATEGY_FIXED_DELAY_DELAY, "0 s"); > flinkConfig.setString(ConfigConstants.METRICS_REPORTERS_LIST, "my_reporter"); > flinkConfig.setString(ConfigConstants.METRICS_REPORTER_PREFIX + "my_reporter." + ConfigConstants.METRICS_REPORTER_CLASS_SUFFIX, MyTestReporter.class.getName()); > return flinkConfig; > } > {code} > where {{MyTestReporter}} is a {{MetricReporter}} that stores metrics being reported to it so we can verify that they are there after the job finishes. > Running a Pipeline on the mini cluster should be possible by specifying "localhost" and the port we received as a cluster endpoint. -- This message was sent by Atlassian JIRA (v6.3.15#6346)