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 AE19D200BDB for ; Mon, 12 Dec 2016 16:05:35 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id ACC02160B0D; Mon, 12 Dec 2016 15:05:35 +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 D2ADA160B22 for ; Mon, 12 Dec 2016 16:05:34 +0100 (CET) Received: (qmail 9181 invoked by uid 500); 12 Dec 2016 15:05:34 -0000 Mailing-List: contact users-help@nifi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@nifi.apache.org Delivered-To: mailing list users@nifi.apache.org Received: (qmail 9171 invoked by uid 99); 12 Dec 2016 15:05:34 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Dec 2016 15:05:34 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 91692CCBBE for ; Mon, 12 Dec 2016 15:05:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.293 X-Spam-Level: *** X-Spam-Status: No, score=3.293 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=windofkeltia-com.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id LLJW1iBL39_P for ; Mon, 12 Dec 2016 15:05:32 +0000 (UTC) Received: from mail-pg0-f45.google.com (mail-pg0-f45.google.com [74.125.83.45]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 809BE5F5F8 for ; Mon, 12 Dec 2016 15:05:32 +0000 (UTC) Received: by mail-pg0-f45.google.com with SMTP id 3so36259992pgd.0 for ; Mon, 12 Dec 2016 07:05:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windofkeltia-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to; bh=XIcZ+BDSkOK+KdV3YcHqEpBUxFvU8vztvCroglKEjso=; b=PNChkFtHrUPoMVH/UDGhpTWPyy/H+Ml1lpbaw1c/BOlQY0760yCQMr1kjS9AAiH+sL hDTsC1VB2y0A3UPtP6kMKse0F9DErW+bHn7QFMrQWc8WQFpB7Xls50mpOgt0rCwM5rp0 IpTPsrVzwwUeOCdX8GY+rXSLj1XuMAfdMS/oIDkuNP/a7weu5US3jUckaljP+f1kjg6p R+NgPwtBeO47uLJaCY+PSGUcQtMHYRvFhQC2qOefZHMMknFHCqnnF2lnyvFc+/oiY9Dd +jnZzmalrvgLcINYUawsX9sua/KPkyE8WIMiByHQrT85wveTJ6/BndO6qVUZOdaFf1Vc sAaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to; bh=XIcZ+BDSkOK+KdV3YcHqEpBUxFvU8vztvCroglKEjso=; b=PrUGCjy4gKpxqasURVNGEioohyyWCb7Oyp9f/2twf6Jn6sp7sBh1VT89kP47vjiQFo HhjITJ/IQFNZfkYp9nUKFBfBGuXFxTFCllM1MMS4kBtRCJ0gfSzoRQSlpkWLnHHYQoFf 59Olfbw1AOa/pk2rDiifBip/clnDPhEtpMMSluRa9D+CoC/BnAg1r+BqGauf40qbkHi/ bpB0ch8GGTR1PWBmy1ImPNFp3cipbAUV5acJAkle4Smpy5vmLkMNIaHhJSXshI4bEJO0 2oL/wlrr0RU9p6Mhl2RxAQ45hWha2wNEjI856tWsqag23Pex8my3m6rUhTHTZHA7AMdH pUZQ== X-Gm-Message-State: AKaTC00bPv/YWE1vp3+qq9ykPoAOKL6W7MBVr+tb1ul2n3HR2obsimRZrhXu4ovhjvju/A== X-Received: by 10.99.128.198 with SMTP id j189mr166352271pgd.151.1481555128981; Mon, 12 Dec 2016 07:05:28 -0800 (PST) Received: from [192.168.0.100] ([45.56.31.180]) by smtp.gmail.com with ESMTPSA id q145sm76553010pfq.22.2016.12.12.07.05.28 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Dec 2016 07:05:28 -0800 (PST) Subject: Re: Making FlowFiles environment independent To: users@nifi.apache.org References: <1481529860516-409.post@n4.nabble.com> From: Russell Bateman Message-ID: <51651d30-32c2-5d58-7af0-fd4381746f58@windofkeltia.com> Date: Mon, 12 Dec 2016 08:05:27 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <1481529860516-409.post@n4.nabble.com> Content-Type: multipart/alternative; boundary="------------246D356C6E191691D3E85A7B" archived-at: Mon, 12 Dec 2016 15:05:35 -0000 This is a multi-part message in MIME format. --------------246D356C6E191691D3E85A7B Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Without completely understanding your scenario, may I suggest you insert UpdateAttributesto do this before PutTCP? It supports Expression Language. Hope this helps. Russ On 12/12/2016 01:04 AM, ddewaele wrote: > We have a flowfile that contains a number of environment specific values > (ports / hostnames / .....). > > Am I correct in saying that there is no immediate variable registry > somewhere in nifi, and that all of these environment specific items need to > be passed as environment variables or java system properties ? > > I understand that the nifi expression language allows us to retrieve > environment variables / system properties, but a number of processor don't > support the expression language for fields that do contain environment > specific values (like the PutTCP processor hostname property). > > How should we go about updating those ? > > > > -- > View this message in context: http://apache-nifi-users-list.2361937.n4.nabble.com/Making-FlowFiles-environment-independent-tp409.html > Sent from the Apache NiFi Users List mailing list archive at Nabble.com. --------------246D356C6E191691D3E85A7B Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 7bit Without completely understanding your scenario, may I suggest you insert UpdateAttributes to do this before PutTCP? It supports Expression Language.

Hope this helps.

Russ

On 12/12/2016 01:04 AM, ddewaele wrote:
We have a flowfile that contains a number of environment specific values
(ports / hostnames / .....).

Am I correct in saying that there is no immediate variable registry
somewhere in nifi, and that all of these environment specific items need to
be passed as environment variables or java system properties ?

I understand that the nifi expression language allows us to retrieve
environment variables / system properties, but a number of processor don't
support the expression language for fields that do contain environment
specific values (like the PutTCP processor hostname property).

How should we go about updating those ?



--
View this message in context: http://apache-nifi-users-list.2361937.n4.nabble.com/Making-FlowFiles-environment-independent-tp409.html
Sent from the Apache NiFi Users List mailing list archive at Nabble.com.

--------------246D356C6E191691D3E85A7B--