[ 
https://issues.apache.org/jira/browse/PIG-1505?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12891685#action_12891685
 ] 

Richard Ding commented on PIG-1505:
-----------------------------------


You can take a look at the test cases in TestPigRunner where local Pig scripts 
are passed to the PigRunner.run method. 

You can first copy a local Pig script to the mini-cluster using

{code}
Util.copyFromLocalToCluster(cluster, <localScriptFileName>, 
<scriptFileNameOnCluster>);
{code}

and then invoke run method with argument

{code}
String[] args = { "-f", "hdfs://<scriptFileNameOnCluste>" };
PigRunner.run(args, null);
{code}

> support jars and scripts in dfs
> -------------------------------
>
>                 Key: PIG-1505
>                 URL: https://issues.apache.org/jira/browse/PIG-1505
>             Project: Pig
>          Issue Type: Improvement
>            Reporter: Andrew Hitchcock
>            Assignee: Andrew Hitchcock
>         Attachments: pig-jars-and-scripts-from-dfs-3.patch, 
> pig-jars-and-scripts-from-dfs-trunk-1.patch, 
> pig-jars-and-scripts-from-dfs-trunk-2.patch, 
> pig-jars-and-scripts-from-dfs-trunk.patch
>
>
> Pig can't operate on files stored in Amazon S3.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to