Grokbase Groups Pig user June 2009
If you're already writing Pig from within Java, your best bet is to probably
go through the standard HDFS interfaces. In particular, see
a utility class that exposes copy method from HDFS to the local file

On Thu, Jun 11, 2009 at 11:46 AM, George Pang wrote:

Hi pig users,
I tried to copyToLocal my stored result from pig queries to my local
workspace. My lines of code in Java are:

*pigServer.registerQuery("copyToLocal output WorkingDir output ");*

And I know Pig Latin statements will execute only at "store" and "dump", so
I think the last line of code won't get executed.
so I tried to add another line:
pigServer.registerQuery( "quit;" );
This will work in Grunt, but not here. So what's the best practice to copy
the file to a local working directory for reading or further processing?
Should I use the interface in Hadoop?
Thank you.


Search Discussions

Discussion Posts


Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 4 | next ›
Discussion Overview
groupuser @
categoriespig, hadoop
postedJun 11, '09 at 6:46p
activeJun 16, '09 at 5:27p



site design / logo © 2021 Grokbase