-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to initialize the Nutch object #4
Comments
@ahmadia any ideas? |
@antrikss - Thanks for the report! What version of Nutch are you running against? What's the output of the server? What happens when you run:
Which tests from |
Hi @ahmadia , thanks for the prompt reply!
And I could work with the above nutch initialization, but my main aim was to give a different crawlId for my crawl.
|
Okay, cool. I haven't tried to do what you're doing before, so I'll need to take a look. |
Just a note, |
@antrromet - our documentation is out of date and needs to be updated. Refer to the
To override a confId, you'd need to create a configuration first. To use default:
To use a custom configuration:
|
Got it. Yes, this will work. But can you tell me a way to change the crawlId? So, I tried the Rest APIs given here, for creating a job, and you can specify a parameter like |
@antrromet - Our documentation is seriously lacking here, but you can create a custom JobClient with:
You can then use the job client to submit jobs and with the |
@ahmadia Got it Aron, thanks a lot! Really appreciate your help. |
No problem. We need to fix our documentation :( |
@antrikss can you update our docs for this? Would you be willing to submit a PR? |
@chrismattmann Sure thing. I'll look into it. |
@ayberk if you have time, would appreciate a PR |
See the wiki I think this takes care of it. |
I used the following command to initialize the Nutch object.
But it gave me the following error
Ideally, the above should have worked, because it should have used the default configuration, and should have been able to find it. But unfortunately, it doesn't and throws the
KeyError
.I even tried explicitly giving the default config (although it doesn't matter because its the default param) but in vain.
The above gave me the following error.
The text was updated successfully, but these errors were encountered: