You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Pradeep Kamath (JIRA)" <ji...@apache.org> on 2008/05/09 02:24:55 UTC

[jira] Issue Comment Edited: (PIG-236) properties specified on the command line are ignored

    [ https://issues.apache.org/jira/browse/PIG-236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12595437#action_12595437 ] 

pkamath edited comment on PIG-236 at 5/8/08 5:24 PM:
------------------------------------------------------------

Currently the code is not looking at the "System properties" which include the command line "-D" overrides and hence the issue reported in this bug. Here is the plan to address this:

First the pig.properties (and currently .pigrc - from comments in the code, there seems to be a plan to not support .pigrc in the future) file(s) will be read into the "properties" object. Then the "System properties" (from System.getProperties()) will be added into the properties object overriding any existing key/values.

A repercussion of this is that any  default java or system properties (like java.io.tmpdir) that a user wants to override should be supplied in the commandline and NOT in pig.properties or .pigrc


      was (Author: pkamath):
    Currently the code is not looking at the "System properties" which include the command line "-D" overrides and hence the issue reported in this bug. Here is the plan to address this:

First the pig.properties (and currently .pigrc - from comments in the code, there seems to be a plan to not support .pigrc in the future) file(s) will be read into the "properties" object. Then the "System properties" (from System.getProperties()) will be added into the properties object overriding any existing
key/values.

A repercussion of this is that any  default java or system properties (like java.io.tmpdir) that a user wants to override should be supplied in the commandline and NOT in pig.properties or .pigrc

  
> properties specified on the command line are ignored
> ----------------------------------------------------
>
>                 Key: PIG-236
>                 URL: https://issues.apache.org/jira/browse/PIG-236
>             Project: Pig
>          Issue Type: Bug
>            Reporter: Olga Natkovich
>            Assignee: Pradeep Kamath
>
> Looks like code in src/org/apache/pig/impl/util/PropertiesUtil.java does not take system properties into account.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.