Hi Jessica, Two month ago i prepared a document that describes how to use NUTCH REST API with example. Hope it will helps you https://docs.google.com/document/d/1OGg22ATohapP2ycewIaTcUnENc2FeyYzni0ED_Jjxz8/edit?usp=sharing
Best Regards, Dzmitry On Fri, Jun 12, 2015 at 5:10 PM, Jessica Glover <glover.jessic...@gmail.com> wrote: > Hello. I am trying to test out the 2.3 REST API using curl, but I'm having > trouble with the commands. I found out what arguments to use for the inject > job from searching the archives, and that was successful, but when I try > generate with no args, it fails: > > { > > "args": {}, > > "confId": "default", > > "crawlId": "crawl-01", > > "id": "crawl-01-default-GENERATE-94689123", > > "msg": "ERROR: java.lang.RuntimeException: job failed: > name=[crawl-01]generate: null, jobid=job_local473690964_0003", > > "result": null, > > "state": "FAILED", > > "type": "GENERATE" > > }, > > > and when I try it with a topN argument, I get the same error about casting > an int to a long that a...@21decades.com reported. > > Can anyone provide some guidance on how to figure out what arguments to > use? Right now I'm guessing based on the source code in GeneratorJob.java > > Does anyone know of any example code out there that uses the REST API? > > > Thanks, > > Jessica >