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

Crawl script fails to find job file if not started from inside bin dir

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8, 2.2.1
    • Fix Version/s: 2.3, 1.9
    • Component/s: None
    • Environment:

      Ubuntu Server 13.10

      Description

      The crawl script that comes with all the version of Nutch I have checked set the local/distributed operating mode using a relative path (i.e. "../*nutch-*.job").

      Bash seems to be taking this as relative to the location that the crawl script was called from, not the scripts actual location.

      The result is that the script thinks it is in local mode because it cannot find the job file. When trying to carry out a crawl jobs are submitted to Hadoop properly, but ifs that test for local (or not) mode fail and give strange results/result in crashes.

      Using the first bash snippet from here I have modified the crawl script to look for a job file relative to the script location on disk.

      I have attached a patch with my modifications.

        Attachments

        1. NUTCH-1761.patch
          0.4 kB
          David Hosking

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                david.hosking David Hosking
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: