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

Generator : unable to distinguish real errors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.9, 2.2.1
    • 2.3, 1.10
    • nutchNewbie
    • None
    • Ubuntu Server 14.04, OpenJDK 7

    Description

      The bin/nutch generate command is returning the same error code (-1) if there is an error or no new segment to process, so there is no way to tell if the error is real or not from a shell script. This problem is related to NUTCH-1828.

      The problem can be fixed by modifying the following Java source file:
      http://svn.apache.org/viewvc/nutch/trunk/src/java/org/apache/nutch/crawl/Generator.java?revision=1619934&view=markup

      At line 711, if there are no new segment, the generator returns -1, which is the same return code returned at line 714 if there was an error.

      Attachments

        1. NUTCH-1829-2x-v2.patch
          0.7 kB
          Sebastian Nagel
        2. NUTCH-1829-2x-v3.patch
          0.7 kB
          Sebastian Nagel

        Issue Links

          Activity

            People

              jnioche Julien Nioche
              mbouchar Mathieu Bouchard
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: