[
https://issues.apache.org/jira/browse/PIG-2456?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13193201#comment-13193201
]
Joey Echeverria commented on PIG-2456:
--------------------------------------
The idea is to add a new file that contains pig statements that are always
executed. This is more akin to the .hiverc in Hive
(https://issues.apache.org/jira/browse/HIVE-1414) than the pig.properties or
.pigrc files that already exists. My use case would be to pre-define a bunch of
UDFs:
REGISTER /usr/lib/pig/contrib/piggybank/java/piggybank.jar;
DEFINE SequenceFileLoader org.apache.pig.piggybank.storage.SequenceFileLoader();
...
I could also see it being useful to put in common LOAD statements so that you
can just start working with the data from grunt.
I tried setting the file variable in .pigrc and pig.properties, but it didn't
seem to cause the file to be loaded.
This is somewhat related to macros where I want a default file that is always
imported.
> 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
>
> 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