[ 
https://issues.apache.org/jira/browse/NUTCH-2569?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sebastian Nagel resolved NUTCH-2569.
------------------------------------
    Resolution: Fixed

> ClassNotFoundException when running in (pseudo-)distributed mode
> ----------------------------------------------------------------
>
>                 Key: NUTCH-2569
>                 URL: https://issues.apache.org/jira/browse/NUTCH-2569
>             Project: Nutch
>          Issue Type: Bug
>    Affects Versions: 1.15
>            Reporter: Sebastian Nagel
>            Assignee: Sebastian Nagel
>            Priority: Blocker
>             Fix For: 1.15
>
>
> The CrawlDb / updatedb job fails in pseudo-distributed mode with a 
> ClassNotFoundException:
> {noformat}
> 18/04/22 19:24:49 INFO mapreduce.Job: Task Id : 
> attempt_1524395182329_0018_m_000000_0, Status : FAILED
> Error: java.lang.RuntimeException: java.lang.ClassNotFoundException: Class 
> org.apache.nutch.crawl.CrawlDbFilter not found
>         at 
> org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2369)
>         at 
> org.apache.hadoop.mapreduce.task.JobContextImpl.getMapperClass(JobContextImpl.java:186)
>         at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:745)
>         at org.apache.hadoop.mapred.MapTask.run(MapTask.java:341)
>         at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:175)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at javax.security.auth.Subject.doAs(Subject.java:422)
>         at 
> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1836)
>         at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:169)
> Caused by: java.lang.ClassNotFoundException: Class 
> org.apache.nutch.crawl.CrawlDbFilter not found
>         at 
> org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:2273)
>         at 
> org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2367)
> {noformat}
> Must define the job jar by calling {{job.setJarByClass(...)}}. This affects 
> also other jobs.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to