variable substitution does not work in pig for properties in mapred-site.xml, 
core-site.xml, etc.
-------------------------------------------------------------------------------------------------

                 Key: PIG-2452
                 URL: https://issues.apache.org/jira/browse/PIG-2452
             Project: Pig
          Issue Type: Bug
    Affects Versions: 0.8.1
            Reporter: Ido Hadanny
            Priority: Minor


create a property that depends on variable substitution, like:
<property>
        <name>mapred.job.tracker</name>
        <value>${local.jobtracker}:8021</value>
</property>
and pig will throw java.net.URISyntaxException. 

Code digging shows that the probable cause is 
HExecutionEngine.recomputeProperties, which uses Configuration.iterator(). 
Instead we should use Configuration.get(), which calls substituteVars.




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to