Return-Path: X-Original-To: apmail-apex-dev-archive@minotaur.apache.org Delivered-To: apmail-apex-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 20D3B1865C for ; Tue, 15 Dec 2015 02:57:51 +0000 (UTC) Received: (qmail 61393 invoked by uid 500); 15 Dec 2015 02:57:45 -0000 Delivered-To: apmail-apex-dev-archive@apex.apache.org Received: (qmail 61324 invoked by uid 500); 15 Dec 2015 02:57:45 -0000 Mailing-List: contact dev-help@apex.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@apex.incubator.apache.org Delivered-To: mailing list dev@apex.incubator.apache.org Received: (qmail 61312 invoked by uid 99); 15 Dec 2015 02:57:45 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Dec 2015 02:57:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id C03E81A044F for ; Tue, 15 Dec 2015 02:57:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.99 X-Spam-Level: ** X-Spam-Status: No, score=2.99 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, T_KAM_HTML_FONT_INVALID=0.01, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=datatorrent-com.20150623.gappssmtp.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id kxJ1n-orGA_2 for ; Tue, 15 Dec 2015 02:57:38 +0000 (UTC) Received: from mail-lf0-f43.google.com (mail-lf0-f43.google.com [209.85.215.43]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 24F0F206E3 for ; Tue, 15 Dec 2015 02:57:38 +0000 (UTC) Received: by lfap203 with SMTP id p203so66937251lfa.0 for ; Mon, 14 Dec 2015 18:57:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=datatorrent-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=PPvn3DJqS12Ge5FCmgYrw3LFqOtUYI4MR91oqLCo47k=; b=WKOZkvaQlVZmfmRHdRqNJadeFCn7BAjKpB3omgVFDq5RSuBT6/MZcFn1K6f9l6Ul5d AoMTgGuI5gzSdPoJ+TC0+b5Jyg6abb+gqmHSPXfKaJ5KKX+8LtybHATe7nmhdCMG9Tz2 H01Wf0/+edgqTvWXPZiK4/R8mWv8+GRo+8Cg+5KdxrQ+U2nnB/D3+wmKKgL0kCOfHsjX OnBr31mNmK67FN9398O21OAmxLE+Dyf6CcXsOQYuSHT3DpQ+SLpwoOo2h01ggQnLNJUJ Feb63zH7e078fwZRgJ9v5v2JcCskNNXdVWsAky5uJG6q0S39va20/OLVb5EIMmbM8pZV /5fA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=PPvn3DJqS12Ge5FCmgYrw3LFqOtUYI4MR91oqLCo47k=; b=Ul1KdGDp69HKvty+tv/Imq30bv53/exILYW2WUUHwnC98R8iZK9wA1+AxY3Rn87YQi OOY02/j9GC49c7kDAGjHQXcDykkfiqkWmHQ0WzggdFOAp+aZ1c8nhwIrZWwIUAH91JSY 8KvFpRB0HbpVvGpTZG22x8DlWavFjP8YnW37d0V4EYPHVSfuqWn1gXm9Ad/h7WHN8MiX Bj5VQXYxhU9720V7rSbQkvZL2+2lv5A9Veh4dV/G1dHxH+E5cwxjMcDCBeYZOxdy8clC JFhJ9rQOkz1gKLsbgQ5Z0fBhDiq9TL44CXoiG2whmKT7ry5UYXLBC+rGk9FZ1jwtYsVi KtYA== X-Gm-Message-State: ALoCoQkjbpxqTiwswu0+k8jRj8PUtrg8zpqm9kCRbFchbriqsaa0BIZUZW/WBqi+AZRMYOO1Hs6rCVRT39ouAQcaiTKPkOX1R+lzB0Ezr4hj0jW5QLE+41c= MIME-Version: 1.0 X-Received: by 10.25.29.202 with SMTP id d193mr12106948lfd.55.1450148251176; Mon, 14 Dec 2015 18:57:31 -0800 (PST) Received: by 10.25.21.68 with HTTP; Mon, 14 Dec 2015 18:57:31 -0800 (PST) In-Reply-To: <85A2DA6B5D38564B8D3B26E75950FF1D04A8F1@PMPEMPE008.LA.FRD.DIRECTV.com> References: <85A2DA6B5D38564B8D3B26E75950FF1D04A8F1@PMPEMPE008.LA.FRD.DIRECTV.com> Date: Mon, 14 Dec 2015 18:57:31 -0800 Message-ID: Subject: Re: configure filesplitter to read batch data from different folders From: David Yan To: dev@apex.incubator.apache.org Content-Type: multipart/alternative; boundary=001a114013a8622b960526e6f3e1 --001a114013a8622b960526e6f3e1 Content-Type: text/plain; charset=UTF-8 Hi Venkatesh, The POST command you listed actually accepts the following as payload: { "{propertyName}" : "{propertyValue}", ... } The propertyName can be "dt.application.app_name.operator.fileSplitter.prop.scanner.files" and the propertyValue can be "/user/data/date=12-14-2015/ver=6/". David On Mon, Dec 14, 2015 at 6:25 PM, Kottapalli, Venkatesh < VKottapalli@directv.com> wrote: > Hi, > > I am trying to configure filesplitter to read files from > different directories based on parameters that I wish to provide as input > to the application? > > > * One way of doing it is to read data from a properties file on > server into application.java and set those values into filesplitter config. > > > * I am wondering if there is a way to pass arguments to the > submitted application so that I can set my filesplitter configuration > dynamically from the below command rather than from properties? > > > > POST > /ws/v2/appPackages/{owner}/{packageName}/{packageVersion}/applications/{appName}/launch[?config={configName}&originalAppId={originalAppId}&queue={queueName}] > Regards, > Venkatesh. > --001a114013a8622b960526e6f3e1--