From issues-return-996-archive-asf-public=cust-asf.ponee.io@flume.apache.org Thu Mar 26 19:33:02 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 1157F180637 for ; Thu, 26 Mar 2020 20:33:01 +0100 (CET) Received: (qmail 24358 invoked by uid 500); 26 Mar 2020 19:33:01 -0000 Mailing-List: contact issues-help@flume.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flume.apache.org Delivered-To: mailing list issues@flume.apache.org Received: (qmail 24336 invoked by uid 99); 26 Mar 2020 19:33:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Mar 2020 19:33:01 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id B40F7E2C44 for ; Thu, 26 Mar 2020 19:33:00 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 2C520780074 for ; Thu, 26 Mar 2020 19:33:00 +0000 (UTC) Date: Thu, 26 Mar 2020 19:33:00 +0000 (UTC) From: "Avinash Kumar (Jira)" To: issues@flume.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (FLUME-3361) Environment variables are not substituted/resolved if agent is configured via ZooKeeper MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLUME-3361?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Avinash Kumar updated FLUME-3361: --------------------------------- Summary: Environment variables are not substituted/resolved if agent is= configured via ZooKeeper (was: Environment variable are not resolved if a= gent is configured via ZooKeeper) > Environment variables are not substituted/resolved if agent is configured= via ZooKeeper > -------------------------------------------------------------------------= -------------- > > Key: FLUME-3361 > URL: https://issues.apache.org/jira/browse/FLUME-3361 > Project: Flume > Issue Type: Bug > Components: Configuration > Affects Versions: 1.9.0 > Reporter: Avinash Kumar > Priority: Major > Original Estimate: 10h > Remaining Estimate: 10h > > Environment variables are not substituted/resolved during agent (re-)conf= iguration if agent is configured via ZooKeeper. > Steps to replicate the issue > 1) Create a znode having agent conf in the ZooKeeper path /flume/a1 . Re= levant part of the conf is shown below > {{ cia.sources =3D accessLog}} > {{ cia.channels =3D channel}} > {{ cia.sinks =3D kafka}} > {{ cia.sources.accessLog.type =3D com.xyz.agent.LogSource}} > {{ cia.sources.accessLog.cid =3D ${CUSTOMER_ID}}} > =C2=A0 > 2) Add environment variable in=C2=A0_conf/flume-env.sh_=C2=A0as shown bel= ow > {{export CUSTOMER_ID=3D"AB123"}} > =C2=A0 > {{3) Start the agent }} > {{ ./flume-ng agent -n a1 -c ../conf -z localhost:2182 -p /flume -Dproper= tiesImplementation=3Dorg.apache.flume.node.EnvVarResolverProperties}} > =C2=A0 -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@flume.apache.org For additional commands, e-mail: issues-help@flume.apache.org