[
https://issues.apache.org/jira/browse/PIG-2456?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13197326#comment-13197326
]
Prashant Kommireddi commented on PIG-2456:
------------------------------------------
Also, user can now specify the bootup file path through configuration property
"pig.load.default.statements". If this property is not found, default location
$HOME/.pigbootup will be loaded if present.
{code}
public static InputStream getCompositeStream(InputStream in, Properties
properties) {
//Load default ~/.pigbootup if not specified by user
final String bootupFile =
properties.getProperty("pig.load.default.statements",
System.getProperty("user.home") + "/.pigbootup");
try {
final InputStream inputSteam = new FileInputStream(new
File(bootupFile));
return new SequenceInputStream(inputSteam, in);
} catch(FileNotFoundException fe) {
log.info("Default bootup file " +bootupFile+ " not found");
return in;
}
}
{code}
> Pig should have a pigrc to specify default script cache
> -------------------------------------------------------
>
> Key: PIG-2456
> URL: https://issues.apache.org/jira/browse/PIG-2456
> Project: Pig
> Issue Type: New Feature
> Reporter: Aniket Mokashi
> Assignee: Prashant Kommireddi
> Attachments: PIG-2456.patch, PIG-2456_2.patch
>
>
> There should be a way to specify default statements in pig. This is helpful
> when multiple users are using pig in interactive mode.
--
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