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

Olga Natkovich updated PIG-1789:
--------------------------------


Additional information regarding properties:

Pig supports a number of java properties to help customize its behavior. None 
of the properties a required. For the list of supported properties you can run 
pig -help properties.
 
Pig supports several mechanism to specify properties:
 
- via -D option on the command line (pig -Dpig.tmpfilecompression=true)
- by supplying pig.properties on the classpath (Put the directory that contains 
pig.properties file into the claspath)
- by providing properties file via -P command line option (pig -P 
mypig.properties)
 
Note that properties file uses standard Java property file format.  The 
following precedence order is supported: pig.properties -> system properties -> 
-P property files. This means that if the same property is provided from 
command line via -D and in the property file specified with -P, the property 
from the file will take the precedence.
 
In addition to the pig properties, the same mechanism can be used to specify 
hadoop properties. Additionally, hadoop properties can be specified by placing 
directory containing hadoop-site.xml file onto the classpath. Hadoop properties 
are not interpreted by Pig but passed directly to Hadoop. Any hadoop property 
can be passed this way.
 
All properties that Pig collects (including Hadoop ones) are available to any 
UDF via the UDFContext. To get access to the properties, you can call 
getJobConf method.


> document pig properties
> -----------------------
>
>                 Key: PIG-1789
>                 URL: https://issues.apache.org/jira/browse/PIG-1789
>             Project: Pig
>          Issue Type: Improvement
>            Reporter: Olga Natkovich
>            Assignee: Olga Natkovich
>             Fix For: 0.9.0
>
>
> We need to document 2 things:
> (1) How pig get hold of properties and what is the precedence
> (2) What properties pig supports

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

Reply via email to