Cant run twice get in SegmentReader

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Cant run twice get in SegmentReader

nadav hashimshony
Hi

i am using the the SegmentReader object.

i am trying to run the following code

SegmentReader sgm = new SegmentReader(conf,true,true,true,true,true,true);

sgm.get(new Path(input),new Text(URL1),
                            new OutputStreamWriter(System.out, "UTF-8"),
                            new HashMap());

                    sgm.get(new Path(input),new Text(URL2).toString()),
                            new OutputStreamWriter(System.out, "UTF-8"),
                            new HashMap());



Where the URL1 and URL2 are valid urls in the nutch DB, i used readseg
option in the bin/nutch to view them.
when i run the code in the debugger i see data for the first get run,
in the second get run i see no data.

Any idea why i cant run the get method twice??

Regards,
Nadav.