[ https://issues.apache.org/jira/browse/PIG-2165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13066084#comment-13066084 ]
Julien Le Dem commented on PIG-2165: ------------------------------------ I agree, on second thoughts my second option is a bad idea as the script can be launched either through the command line or programmatically through the java API. In that case the only parameters that are available are the ones passed through -p. There's no good way to reuse sys.argv here, it is not really a good fit as it is a list of strings. Suggestions: - a separate dictionary: Pig.getParameters() ? - placed in global variables > Need a way to deal with params and param_file in embedded pig in python > ----------------------------------------------------------------------- > > Key: PIG-2165 > URL: https://issues.apache.org/jira/browse/PIG-2165 > Project: Pig > Issue Type: Bug > Components: impl > Affects Versions: 0.9.0 > Reporter: Supreeth > Fix For: 0.10 > > > I am using embedded pig in python and cannot pass param key value pairs to > the python script. The only way to pass params seem to be by passing it in > the bind command. > Is there a plan to have command line parameters to a pig embedded python > script? Similar needs for param_file and using the environment variables. > Thanks > Supreeth -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira