Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 26E2618F05 for ; Mon, 24 Aug 2015 16:46:50 +0000 (UTC) Received: (qmail 22994 invoked by uid 500); 24 Aug 2015 16:46:49 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 22950 invoked by uid 500); 24 Aug 2015 16:46:49 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 22939 invoked by uid 99); 24 Aug 2015 16:46:49 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Aug 2015 16:46:49 +0000 Date: Mon, 24 Aug 2015 16:46:49 +0000 (UTC) From: "Ravi Prakash (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-10949) Write metrics2 sink plugin for Apache Kafka -- KafkaSink MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-10949?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14709595#comment-14709595 ] Ravi Prakash commented on HADOOP-10949: --------------------------------------- 1. {{dateFormat}} and {{timeFormat}} can be static final members of KafkaSink. 2. Any reason you want to initialize {{hostname}} on every {{putMetrics()}}? 3. Please conform to Hadoop coding style and fix indentation: {code} ProducerRecord data = new ProducerRecord( topic, jsonLines.toString().getBytes()); {code} 4. Please document the expected behavior of the KafkaProducer in putMetrics(), of putMetrics and also an example record json. 5. {{flush()}} could be a synchronous send() of an empty record or it should throw a MetricsException too IMHO. 6. Please document the test. Please follow the coding style guide for the test as well. > Write metrics2 sink plugin for Apache Kafka -- KafkaSink > -------------------------------------------------------- > > Key: HADOOP-10949 > URL: https://issues.apache.org/jira/browse/HADOOP-10949 > Project: Hadoop Common > Issue Type: New Feature > Components: metrics > Reporter: Babak Behzad > Assignee: Babak Behzad > Attachments: HADOOP-10949-1.patch, HADOOP-10949-2.patch, HADOOP-10949.patch, HADOOP-10949.patch, HADOOP-10949.patch, HADOOP-10949.patch, HADOOP-10949.patch, HADOOP-10949.patch, HADOOP-10949.patch, HADOOP-10949.patch, HADOOP-10949.patch, HADOOP-10949.patch, HADOOP-10949.patch > > > Write a metrics2 sink plugin for Hadoop to send metrics directly to Apache Kafka in addition to the current, Graphite ([Hadoop-9704|https://issues.apache.org/jira/browse/HADOOP-9704]), Ganglia and File sinks. -- This message was sent by Atlassian JIRA (v6.3.4#6332)