Return-Path: X-Original-To: apmail-flume-user-archive@www.apache.org Delivered-To: apmail-flume-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 11C0A18008 for ; Thu, 7 Jan 2016 14:05:20 +0000 (UTC) Received: (qmail 53087 invoked by uid 500); 7 Jan 2016 14:05:19 -0000 Delivered-To: apmail-flume-user-archive@flume.apache.org Received: (qmail 53018 invoked by uid 500); 7 Jan 2016 14:05:19 -0000 Mailing-List: contact user-help@flume.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@flume.apache.org Delivered-To: mailing list user@flume.apache.org Received: (qmail 53008 invoked by uid 99); 7 Jan 2016 14:05:19 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jan 2016 14:05:19 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 2839B18050E for ; Thu, 7 Jan 2016 14:05:19 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.81 X-Spam-Level: X-Spam-Status: No, score=0.81 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, SPF_PASS=-0.001, T_FILL_THIS_FORM_SHORT=0.01, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id do2ev3MUiQmo for ; Thu, 7 Jan 2016 14:05:06 +0000 (UTC) Received: from smtp.vclk.net (smtp.vclk.net [64.156.167.188]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 152A6439E1 for ; Thu, 7 Jan 2016 14:05:05 +0000 (UTC) Received: from unknown (HELO ORD-EXCA102.corp.valueclick.com) ([10.28.194.9]) by smtp.vclk.net with ESMTP/TLS/AES128-SHA; 07 Jan 2016 06:04:20 -0800 Received: from ORD-EXDB101.corp.valueclick.com ([fe80::bd7c:e6f2:28d1:d7cd]) by ORD-EXCA102.corp.valueclick.com ([10.110.1.63]) with mapi id 14.03.0248.002; Thu, 7 Jan 2016 08:03:56 -0600 From: "Keane, Mike" To: "user@flume.apache.org" Subject: RE: Spooldir needs a Kafka topic defined in the agent.conf Thread-Topic: Spooldir needs a Kafka topic defined in the agent.conf Thread-Index: DBkj148gtQYrZWQrOFM5ip702QtXAPBJoFki8CQ6PDWP3Rvlcg== Date: Thu, 7 Jan 2016 14:03:54 +0000 Message-ID: References: <450422392.14419810.1452098035518.JavaMail.zimbra@plista.com> ,<1419516952.14647459.1452171138227.JavaMail.zimbra@plista.com> In-Reply-To: <1419516952.14647459.1452171138227.JavaMail.zimbra@plista.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.28.24.51] Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable I assume you want to the topic header based on the contents of the line of = data read in from the Spooling Directory Source? If so I think you want to= configure a Regex Extract Interceptor, or implement your own interceptor t= o do this. = http://flume.apache.org/FlumeUserGuide.html#regex-extractor-interceptor ________________________________________ From: Simone Roselli [simone.roselli@plista.com] Sent: Thursday, January 07, 2016 6:52 AM To: user Subject: Re: Spooldir needs a Kafka topic defined in the agent.conf Hi, in your configuration you define the topic name in the agent.conf (spooling= Agent.sinks.kafka-sink-1.topic =3D data_in); This is what I do not want. I would like the spoolDir to retrieve the topic name from the event headers Simone Roselli ITE Sysadmin simone.roselli@plista.com http://www.plista.com ----- Original Message ----- From: "Keane, Mike" To: "user" Sent: Wednesday, January 6, 2016 6:30:41 PM Subject: RE: Spooldir needs a Kafka topic defined in the agent.conf I attempted to put together a little Flume+Kafka tutorial including using C= amus to run map-reduce jobs pulling from Kafka and writing to HDFS. My exa= mple uses a spoolDirSource, KafkaChannel & KafkaSink. This may be of some = help to you. https://github.com/mbkeane/BigDataTechCon/blob/master/README.md ________________________________________ From: Simone Roselli [simone.roselli@plista.com] Sent: Wednesday, January 06, 2016 10:33 AM To: user@flume.apache.org Subject: Spooldir needs a Kafka topic defined in the agent.conf Hi, I'm having trouble configuring a spooldir source using the Kafka sink In Flume-NG I can use the Kafka sink without specify a topic name in the ag= ent.conf, since the event contains this topic name in the headers. Things look different using the spooldir source. If you don't provide a top= ic name in agent.conf, it will only try a default one (default-flume-topic). Is there a way to force spooldir source using the topic name in the headers? ps: I'm using Spooldir with the AVRO deserialization; no other particular c= onfiguration. "fileHeader" is set as "true" Many thanks Simone Roselli ITE Sysadmin simone.roselli@plista.com http://www.plista.com This email and any files included with it may contain privileged, proprietary and/or confidential information that is for the sole use of the intended recipient(s). Any disclosure, copying, distribution, posting, or use of the information contained in or attached to this email is prohibited unless permitted by the sender. If you have received this email in error, please immediately notify the sender via return email, telephone, or fax and destroy this original transmission and its included files without reading or saving it in any manner. Thank you. This email and any files included with it may contain privileged, proprietary and/or confidential information that is for the sole use of the intended recipient(s). Any disclosure, copying, distribution, posting, or use of the information contained in or attached to this email is prohibited unless permitted by the sender. If you have received this email in error, please immediately notify the sender via return email, telephone, or fax and destroy this original transmission and its included files without reading or saving it in any manner. Thank you.