[ 
https://issues.apache.org/jira/browse/PIG-1811?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ashutosh Chauhan updated PIG-1811:
----------------------------------

    Affects Version/s:     (was: 0.8.0)
                       0.7.0
        Fix Version/s:     (was: 0.9.0)

Shown above is inappropriate usage of UDFContext by loader. All the interface 
methods of LoadFunc/StoreFunc passes a job object. If loader wants to access 
the properties passed to Pig by user, it should look into job object, not 
UDFContext. This works correctly as expected in Pig 0.8. However, in Pig 0.7 
properties are not available either via UDFContext or Job object. Said 
properties were in pig.properties file which Pig reads by default from its 
classpath.

> 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
>            Priority: Minor
>
> 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.
-
You can reply to this email to add a comment to the issue online.

Reply via email to