Return-Path: X-Original-To: apmail-falcon-dev-archive@minotaur.apache.org Delivered-To: apmail-falcon-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 5FD741823F for ; Mon, 23 Nov 2015 08:41:49 +0000 (UTC) Received: (qmail 26120 invoked by uid 500); 23 Nov 2015 08:41:49 -0000 Delivered-To: apmail-falcon-dev-archive@falcon.apache.org Received: (qmail 26083 invoked by uid 500); 23 Nov 2015 08:41:49 -0000 Mailing-List: contact dev-help@falcon.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@falcon.apache.org Delivered-To: mailing list dev@falcon.apache.org Received: (qmail 26072 invoked by uid 99); 23 Nov 2015 08:41:48 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Nov 2015 08:41:48 +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 85B3AC7F7B for ; Mon, 23 Nov 2015 08:41:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.594 X-Spam-Level: **** X-Spam-Status: No, score=4.594 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=3, KAM_LAZY_DOMAIN_SECURITY=1, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.588] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id n6vmTqPP3li9 for ; Mon, 23 Nov 2015 08:41:34 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with SMTP id 4972720BFB for ; Mon, 23 Nov 2015 08:41:33 +0000 (UTC) Received: (qmail 25956 invoked by uid 99); 23 Nov 2015 08:41:32 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Nov 2015 08:41:32 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 38BA11DD7E3; Mon, 23 Nov 2015 08:41:31 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============1731975395093260586==" MIME-Version: 1.0 Subject: Re: Review Request 40481: Need ability to provide the path for recipe files in command line From: "Peeyush Bishnoi" To: "Peeyush Bishnoi" , "Falcon" , "Ajay Yadava" Date: Mon, 23 Nov 2015 08:41:31 -0000 Message-ID: <20151123084131.26797.77295@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: "Peeyush Bishnoi" X-ReviewGroup: Falcon X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/40481/ X-Sender: "Peeyush Bishnoi" References: <20151120024018.19610.59691@reviews.apache.org> In-Reply-To: <20151120024018.19610.59691@reviews.apache.org> Reply-To: "Peeyush Bishnoi" X-ReviewRequest-Repository: falcon-git --===============1731975395093260586== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit > On Nov. 20, 2015, 2:40 a.m., Ajay Yadava wrote: > > Thanks Ajay for reviewing. > On Nov. 20, 2015, 2:40 a.m., Ajay Yadava wrote: > > client/src/main/java/org/apache/falcon/cli/FalconRecipeCLI.java, line 107 > > > > > > I think only having a file exists check should be enough for validation. This check I have put up, to ensure that recipe properties file name must match to recipe name as per the recipe current design. > On Nov. 20, 2015, 2:40 a.m., Ajay Yadava wrote: > > client/src/main/java/org/apache/falcon/cli/FalconRecipeCLI.java, line 43 > > > > > > Do you think "file" instead of "properties" will be more intuitive? "file" is more general but here for recipe we want to specifically provide recipe properties file that's why "properties" looks better. > On Nov. 20, 2015, 2:40 a.m., Ajay Yadava wrote: > > client/src/main/java/org/apache/falcon/cli/FalconRecipeCLI.java, line 110 > > > > > > It is a mandatory parameter and if it is blank then it's fine? recipePropertiesFile is mandatory parameter while passing through properties argument on command line. Value to option "-properties" can't be null . If recipe properties file is not passed, then properties file must be available inside "falcon.recipe.path" as usual. > On Nov. 20, 2015, 2:40 a.m., Ajay Yadava wrote: > > client/src/main/java/org/apache/falcon/cli/FalconRecipeCLI.java, line 119 > > > > > > Any reason for having the restriction that the properties file should match the recipe name? I am not able to appreciate it's usefulness and it looks restrictive to me. As per current design of recipe, it looks for template and properties file with recipe name only. String recipeFilePath = recipePath + File.separator + recipeName + TEMPLATE_SUFFIX; String propertiesFilePath = recipePath + File.separator + recipeName + PROPERTIES_SUFFIX; And through this patch, I don't want to change much behaviour, that's why I aligned with current implementation of recipe. Hoping such restriction will not be available when recipe server side will be implemented. > On Nov. 20, 2015, 2:40 a.m., Ajay Yadava wrote: > > client/src/main/java/org/apache/falcon/client/FalconClient.java, line 1108 > > > > > > Can you please add it in the client.properties so that it's easier for users to figure out which property value to override? done. > On Nov. 20, 2015, 2:40 a.m., Ajay Yadava wrote: > > client/src/main/java/org/apache/falcon/client/FalconClient.java, line 1152 > > > > > > Earlier this path was the value of ""falcon.recipe.path" in client.properties and now it has extra sub path added to it. Was it broken earlier? No. Now templateFilePath is also from the value of "falcon.recipe.path" only. With this patch, if properties file is passed on command line then we will use properfiles file directory path to look for recipe template and workflow file. This obtained directory path from properties file will become "falcon.recipe.path". - Peeyush ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/40481/#review107292 ----------------------------------------------------------- On Nov. 19, 2015, 2:02 p.m., Peeyush Bishnoi wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/40481/ > ----------------------------------------------------------- > > (Updated Nov. 19, 2015, 2:02 p.m.) > > > Review request for Falcon. > > > Bugs: FALCON-1588 > https://issues.apache.org/jira/browse/FALCON-1588 > > > Repository: falcon-git > > > Description > ------- > > FALCON-1588 : Need ability to provide the path for recipe files in command line > > > Diffs > ----- > > client/src/main/java/org/apache/falcon/cli/FalconRecipeCLI.java b93fed2 > client/src/main/java/org/apache/falcon/client/FalconClient.java c49dd08 > > Diff: https://reviews.apache.org/r/40481/diff/ > > > Testing > ------- > > yes. > > > Thanks, > > Peeyush Bishnoi > > --===============1731975395093260586==--