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 7CE9B200B63 for ; Mon, 15 Aug 2016 14:41:26 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7B813160AB8; Mon, 15 Aug 2016 12:41:26 +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 C4C4D160A6C for ; Mon, 15 Aug 2016 14:41:25 +0200 (CEST) Received: (qmail 98570 invoked by uid 500); 15 Aug 2016 12:41:24 -0000 Mailing-List: contact dev-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list dev@flink.apache.org Received: (qmail 98447 invoked by uid 99); 15 Aug 2016 12:41:24 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Aug 2016 12:41:24 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 998E22C02AD for ; Mon, 15 Aug 2016 12:41:22 +0000 (UTC) Date: Mon, 15 Aug 2016 12:41:22 +0000 (UTC) From: "RWenden (JIRA)" To: dev@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (FLINK-4396) MetricRegistry class not found at startup of jobmanager MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 15 Aug 2016 12:41:26 -0000 RWenden created FLINK-4396: ------------------------------ Summary: MetricRegistry class not found at startup of jobmanager Key: FLINK-4396 URL: https://issues.apache.org/jira/browse/FLINK-4396 Project: Flink Issue Type: Bug Components: Build System Affects Versions: 1.1.1 Environment: Windows and Unix Reporter: RWenden Fix For: 1.1.2 For Flink 1.1.1 we configured Graphite metrics settings on the flink-conf.yaml (for job manager (and taskmanager)). We see the following error in the log: 2016-08-15 14:20:34,167 ERROR org.apache.flink.runtime.metrics.MetricRegistry - Could not instantiate metrics reportermy_reporter. Metrics might not be exposed/reported. java.lang.ClassNotFoundException: org.apache.flink.metrics.graphite.GraphiteReporter at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at org.apache.flink.runtime.metrics.MetricRegistry.(MetricRegistry.java:119) We found out that this class is not packaged inside flink-dist_2.11-1.1.1.jar. Long story short: we had to install/provide the following jars into the lib folder to make Graphite metrics to work: flink-metrics-graphite-1.1.1.jar flink-metrics-dropwizard-1.1.1.jar metrics-graphite-3.1.0.jar (from dropwizard) We think these libraries (and the ones for Ganglia,StatsD,...) should be included in flink-dist_2.11-1.1.1.jar, for these are needed at manager startup time. -- This message was sent by Atlassian JIRA (v6.3.4#6332)