[ 
https://issues.apache.org/jira/browse/FALCON-536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14143023#comment-14143023
 ] 

samar commented on FALCON-536:
------------------------------

Using the PigServer might help us achieve the dry run feature. the code might 
look something like


PigServer pig = new PigServer(ExecType.LOCAL );
.......
pigServer.registerQuery("A = LOAD '"
            + Util.generateURI(tmpFile.toString(), pigServer.getPigContext())
            + "' using PigStorage() AS (num:int);");
    pigServer.registerQuery("B = order A by num desc;");
    Iterator<Tuple> result = pigServer.openIterator("B");

....



> Basic dry run/validation module
> -------------------------------
>
>                 Key: FALCON-536
>                 URL: https://issues.apache.org/jira/browse/FALCON-536
>             Project: Falcon
>          Issue Type: Sub-task
>            Reporter: samar
>   Original Estimate: 40h
>  Remaining Estimate: 40h
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to