[ 
https://issues.apache.org/jira/browse/NUTCH-2719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16918601#comment-16918601
 ] 

ASF GitHub Bot commented on NUTCH-2719:
---------------------------------------

sebastian-nagel commented on issue #465: NUTCH-2719: An exchange points to an 
index writer not available
URL: https://github.com/apache/nutch/pull/465#issuecomment-526176683
 
 
   +1
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> NPE if exchanges.xml uses index writer not available
> ----------------------------------------------------
>
>                 Key: NUTCH-2719
>                 URL: https://issues.apache.org/jira/browse/NUTCH-2719
>             Project: Nutch
>          Issue Type: Improvement
>          Components: indexer
>    Affects Versions: 1.15
>            Reporter: Sebastian Nagel
>            Assignee: Roannel Fernández Hernández
>            Priority: Major
>             Fix For: 1.16
>
>
> If the exchanges.xml uses an index writer not present (e.g., because the 
> plugin is not in plugin.includes) the index job fails with a NPE:
> {noformat}
> java.lang.Exception: java.lang.NullPointerException
>         at 
> org.apache.hadoop.mapred.LocalJobRunner$Job.runTasks(LocalJobRunner.java:462)
>         at 
> org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:529)
> Caused by: java.lang.NullPointerException
>         at org.apache.nutch.indexer.IndexWriters.write(IndexWriters.java:222)
>         at 
> org.apache.nutch.indexer.IndexerOutputFormat$1.write(IndexerOutputFormat.java:62)
>         at 
> org.apache.nutch.indexer.IndexerOutputFormat$1.write(IndexerOutputFormat.java:47)
>         at 
> org.apache.hadoop.mapred.ReduceTask$NewTrackingRecordWriter.write(ReduceTask.java:558)
> {noformat}
> This should be caught gracefully with a message about an inconsistent 
> configuration.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to