[
https://issues.apache.org/jira/browse/PIG-326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12615703#action_12615703
]
Pradeep Kamath commented on PIG-326:
------------------------------------
Running pig in the following way should allow users to supplied a new
pig.properties:
{noformat}
If not using HOD:
java -cp <directory containing custom pig.properties>:<fullpath to
pig.jar>:<directory containing hadoop-site.xml> -Dhod.server=""
org.apache.pig.Main <pigscript file>
If using HOD:
java -cp <directory containing custom pig.properties>:<fullpath to pig.jar>
org.apache.pig.Main <pigscript file>
{noformat}
Couple of points:
1) The custom pig.properties file should be name "pig.properties"
2) The classpath specified above should have the directory containing
pig.properties as the first element
> Read properties file from classpath
> -----------------------------------
>
> Key: PIG-326
> URL: https://issues.apache.org/jira/browse/PIG-326
> Project: Pig
> Issue Type: Improvement
> Reporter: Amir Youssefi
>
> Some users need to change properties file frequently. Looking for
> pig.properties in classpath and merging that with existing one in pig.jar
> (giving it precedence to one in classpath) will be helpful.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.