Uploaded image for project: 'Nutch'
  1. Nutch
  2. NUTCH-2569

ClassNotFoundException when running in (pseudo-)distributed mode

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.15
    • Fix Version/s: 1.15
    • Component/s: None
    • Labels:
      None

      Description

      The CrawlDb / updatedb job fails in pseudo-distributed mode with a ClassNotFoundException:

      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)
      

      Must define the job jar by calling job.setJarByClass(...). This affects also other jobs.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                snagel Sebastian Nagel
                Reporter:
                snagel Sebastian Nagel
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: