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

SegmentReader -list fails to read segment

    XMLWordPrintableJSON

    Details

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

      local + pseudo-distributed mode

      Description

      The -list command of SegmentReader fails to read data from segments:

      % bin/nutch readseg -list crawl/segments/20180409100315/ 
      Exception in thread "main" java.io.IOException: wrong value class:  is not class org.apache.nutch.crawl.CrawlDatum
              at org.apache.hadoop.io.SequenceFile$Reader.next(SequenceFile.java:2379)
              at org.apache.nutch.segment.SegmentReader.getStats(SegmentReader.java:524)
              at org.apache.nutch.segment.SegmentReader.list(SegmentReader.java:482)
              at org.apache.nutch.segment.SegmentReader.run(SegmentReader.java:670)
              at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
              at org.apache.nutch.segment.SegmentReader.main(SegmentReader.java:736)
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: