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 E00D817A3C for ; Tue, 28 Oct 2014 16:03:59 +0000 (UTC) Received: (qmail 48632 invoked by uid 500); 28 Oct 2014 16:03:59 -0000 Delivered-To: apmail-flume-user-archive@flume.apache.org Received: (qmail 48581 invoked by uid 500); 28 Oct 2014 16:03:59 -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 48571 invoked by uid 99); 28 Oct 2014 16:03:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Oct 2014 16:03:59 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of otis.gospodnetic@gmail.com designates 209.85.192.54 as permitted sender) Received: from [209.85.192.54] (HELO mail-qg0-f54.google.com) (209.85.192.54) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Oct 2014 16:03:33 +0000 Received: by mail-qg0-f54.google.com with SMTP id q108so745094qgd.27 for ; Tue, 28 Oct 2014 09:02:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=IMwnPQnmMWVjUYEZODaintkmxaOb9jw+5gNGdlHSubo=; b=wjTDyvVcMhUqtQDl9Xl9QDQfGDLjPaJQOvcl0zml4r4X4T0Sj3ddDHWkNMIz5ivsSD Hq3Nih+58l3pX/6oyMiiu1F9gbl6vRAH/1/1dABRL8upm6PDxCc5D7cG1+0wPmhC/hBe h4aMCjFoXjYmqobadIu42ZO/2XwiDjKI+cc4LWYJURZNwcNx8cPbOOTA2R9yIHmgov1c VN5Eu4KQMF0srIGWrCEFbmcsJWypjKZCGz8cdyDAKXKaTD0temQrrQpK2BmDcvjwYOK/ i9ATzhwQKzLYz5NB9Taz0y9k1Jk6Lz2hgnC+BGdneiTfKFbQeu9H/Eocgd56luvsfX+c JgGQ== MIME-Version: 1.0 X-Received: by 10.224.86.68 with SMTP id r4mr6456461qal.55.1414512122095; Tue, 28 Oct 2014 09:02:02 -0700 (PDT) Received: by 10.229.51.130 with HTTP; Tue, 28 Oct 2014 09:02:02 -0700 (PDT) In-Reply-To: References: Date: Tue, 28 Oct 2014 12:02:02 -0400 Message-ID: Subject: Re: Dynamic sink configuration From: Otis Gospodnetic To: user@flume.apache.org Content-Type: multipart/alternative; boundary=001a11c3ec7a924cfd05067dc491 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c3ec7a924cfd05067dc491 Content-Type: text/plain; charset=UTF-8 As far as I know, Flume is configured only through the config and I *think* Flume automatically reloads the config when it detects the config changed - at least that is what Ashish wrote here: http://search-hadoop.com/m/DEeB4w0kHg1 Otis -- Monitoring * Alerting * Anomaly Detection * Centralized Log Management Solr & Elasticsearch Support * http://sematext.com/ On Mon, Oct 27, 2014 at 7:42 PM, Pavel Zalunin wrote: > Hi, > > We have embedded flume agent and we need to update some parameters > dynamically after sink/source runners are started. > > For example, having sink which sends events to some url. At some point we > need to change this url (add request parameter for example). > > Straightforward way is to add method which will accept changes and update > internal state, but it looks like a 'hack', because all flume sinks, that > I've seen configured just once. > > Maybe there are another, 'flume-way' to do such things? > > Is restarting sink (I think restart other related things also needed) only > one option? > > Thanks, > Pavel. > --001a11c3ec7a924cfd05067dc491 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
As far as I know, Flume is configured only through the con= fig and I *think* Flume automatically reloads the config when it detects th= e config changed - at least that is what Ashish wrote here:=C2=A0http://search-hadoop.com/m/DEeB4w0= kHg1

Otis
--
Monitoring * Alerting * Anomaly Detection * Centralized Log Man= agement
Solr & El= asticsearch Support *=C2=A0http://sematext.com/
<= div>

On Mon, Oct 27, 2014 at 7:42 PM, Pavel Zalun= in <wr4bbit@gmail.com> wrote:
Hi,

We have embedded flume agent and we need to= update some parameters dynamically after sink/source runners are started.= =C2=A0

For example, having sink which sends events= to some url. At some point we need to change this url (add request paramet= er for example).=C2=A0

Straightforward way is to a= dd method which will accept changes and update internal state, but it looks= like a 'hack', because all flume sinks, that I've seen configu= red just once.

Maybe there are another, 'flume= -way' to do such things?

Is restarting sink (I= think restart other related things also needed) only one option?=C2=A0

Thanks,
Pavel.

--001a11c3ec7a924cfd05067dc491--