You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Richard Ding (JIRA)" <ji...@apache.org> on 2011/04/15 00:20:06 UTC

[jira] [Commented] (PIG-1811) Provide a way to access properties defined in properties file in front end

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

Richard Ding commented on PIG-1811:
-----------------------------------

As Ashutosh commented that UDF has access to Job configuration (via UDFContext) in back-end and, in front-end, Job configuration is accessible in all methods of LoadFunc/StoreFunc (and InputFormat/OutputFormat). 

I'm going to close this jira. We will open new jiras if new use cases come up in the future. 
 

> Provide a way to access properties defined in properties file in front end
> --------------------------------------------------------------------------
>
>                 Key: PIG-1811
>                 URL: https://issues.apache.org/jira/browse/PIG-1811
>             Project: Pig
>          Issue Type: Improvement
>          Components: impl
>    Affects Versions: 0.7.0
>            Reporter: Ashutosh Chauhan
>            Assignee: Richard Ding
>            Priority: Minor
>             Fix For: 0.9.0
>
>
> If I have properties defined in a properties-file and pass it to pig using pig -P pig.properties, these properties aren't accessible in front end (e.g. in MyLoader.setPartitionKeys() ) when I try to access it through  UDFContext.getUDFContext().getClientSystemProps().getProperty("myprop")

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira