Return-Path: Delivered-To: apmail-incubator-pig-dev-archive@locus.apache.org Received: (qmail 19146 invoked from network); 8 Apr 2008 13:38:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Apr 2008 13:38:10 -0000 Received: (qmail 73843 invoked by uid 500); 8 Apr 2008 13:38:10 -0000 Delivered-To: apmail-incubator-pig-dev-archive@incubator.apache.org Received: (qmail 73744 invoked by uid 500); 8 Apr 2008 13:38:10 -0000 Mailing-List: contact pig-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: pig-dev@incubator.apache.org Delivered-To: mailing list pig-dev@incubator.apache.org Received: (qmail 73724 invoked by uid 99); 8 Apr 2008 13:38:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Apr 2008 06:38:10 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Apr 2008 13:37:36 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1C5BD234C0C0 for ; Tue, 8 Apr 2008 06:35:26 -0700 (PDT) Message-ID: <1935334617.1207661726099.JavaMail.jira@brutus> Date: Tue, 8 Apr 2008 06:35:26 -0700 (PDT) From: "Pi Song (JIRA)" To: pig-dev@incubator.apache.org Subject: [jira] Updated: (PIG-111) Configuration of Pig In-Reply-To: <6326333.1203154990904.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/PIG-111?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pi Song updated PIG-111: ------------------------ Attachment: pig-111_v13.patch New patch again - Merged with the current trunk (easy this time) - Always read and merge configurations from both .pigrc and pig.properties. pig.properties takes precedence. - All tests passed. > Configuration of Pig > -------------------- > > Key: PIG-111 > URL: https://issues.apache.org/jira/browse/PIG-111 > Project: Pig > Issue Type: Improvement > Reporter: Craig Macdonald > Assignee: Stefan Groschupf > Attachments: after.png, before.png, config.patch.1502, PIG-111-v04.patch, PIG-111-v05.patch, PIG-111-v06.patch, PIG-111_v12.patch, pig-111_v13.patch, PIG-111_v_11.patch, PIG-111_v_3_sg.patch, PIG-111_v_7_r633244M.patch, PIG-111_v_8_r633244M.patch, PIG-111_v_9_r641081.patch, PIG-93-v01.patch, PIG-93-v02.patch, PIG_111_v10.patch, TEST-org.apache.pig.test.PigContextTest.txt, TEST-org.apache.pig.test.TestStreaming.txt, TEST-org.apache.pig.test.TestStreaming.txt > > > This JIRA discusses issues relating to the configuration of Pig. > Uses cases: > > 1. I want to configure Pig programatically from Java > Motivation: pig can be embedded from another Java program, and configuration should be accessible to be set by the client code > 2. I want to configure Pig from the command line > 3. I want to configure Pig from the Pig shell (Grunt) > 4. I want Pig to remember my configuration for every Pig session > Motivation: to save me typing in some configuration stuff every time. > 5. I want Pig to remember my configuration for this script. > Motivation: I must use a common configuration for 50% of my Pig scripts - can I share this configuration between scripts. > Current Status: > * Pig uses System properties for some configuration > * A configuration properties object in PigContext is not used. > * pigrc can contain properties > * Configuration properties can not be set from Grunt > Proposed solutions to use cases: > 1. Configuration should be set in PigContext, and accessible from client code. > 2. System properties are copied to PigContext, or can be specified on the command line (duplication with System properties) > 3. Allow configuration properties to be set using the "set" command in Grunt > 4. Pigrc can contain properties. Is this enough, or can other configuration stuff be set, eg aliases, imports, etc. > 5. Add an include directive to pig, to allow a shared configuration/Pig script to be included. > Connections to Shell scripting: > * The source command in Bash allows another bash script file to be included - this allows shared variables to be set in one file shared between a set of scripts. > * Aliases can be set, according to user preferences, etc. > * All this can be done in your .bashrc file > Issues: > * What happens when you change a property after the property has been read? > * Can Grunt read a pigrc containing various statements etc before the PigServer is completely configured? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.