0

I am trying to execute mongo mapreduce commands via the java api - com.mongodb.MapReduceCommand . Prior to this, when I was executing the command via the mongo shell, I was able to view the output from the standard output stream. When I invoke the command via the java api, how could I check for any output for progress/error info ?

I have enabled the verbosity to true (by default) .

Thanks!

4

1 回答 1

0

MapReduceCommand 处于阻塞状态,因此无法检查进度。但是,您可以使用 MapReduceOutput 类来捕获 map/reduce 操作的结果。

于 2012-02-22T22:17:47.220 回答