[
https://issues.apache.org/jira/browse/NUTCH-2325?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sujan Kumar Suppala updated NUTCH-2325:
---------------------------------------
Attachment: NUTCH-2325_1.patch
previous patch attachment(NUTCH-2325.patch) has compile issues, created a new
patch(NUTCH-2325_1.patch) to fix the compile issue.
> Inject REST call to set overwrite and update parameters
> -------------------------------------------------------
>
> Key: NUTCH-2325
> URL: https://issues.apache.org/jira/browse/NUTCH-2325
> Project: Nutch
> Issue Type: Bug
> Components: injector
> Affects Versions: 1.12
> Reporter: Sujan Kumar Suppala
> Attachments: NUTCH-2325.patch, NUTCH-2325_1.patch
>
>
> INJECT REST uses the old method invocation which sets overwrite and update to
> false, which is wrong.
> https://github.com/apache/nutch/blob/master/src/java/org/apache/nutch/crawl/Injector.java#L514
> There should be an option to set the overwrite and update in the REST request.
> eg:
> {quote}
> {noformat}
> POST /job/create
> {
> "type":"INJECT",
> "confId":"default",
> "crawlId":"TestCrawl",
> "args": {
> "url_dir":"c:\\cygwin64\\tmp\\1475752235404-0",
> "overwrite":"true",
> "update":"true"
> }
> }
> {noformat}
> {quote}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)