Apache Nutch is an extensible and scalable web crawler https://nutch.apache.org/
  • Java 96.7%
  • HTML 2%
  • Shell 1%
  • XSLT 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-05 08:47:26 -08:00
.github NUTCH-3224 crawl --wait hour suffix waits 120 seconds instead of one hour (#988) 2026-11-05 08:11:15 -08:00
.yetus NUTCH-3215 Remove trailing whitespace reported by Yetus blanks on master (#974) 2026-10-12 12:08:33 -07:00
conf NUTCH-3221 HTTP protocols to verify TLS/SSL certificates by default 2026-10-30 20:14:09 +01:00
docker NUTCH-3198 Yetus: pay down historical style debt (authors, whitespace, markdown) (#979) 2026-10-17 20:20:18 -07:00
ivy NUTCH-3215 Remove trailing whitespace reported by Yetus blanks on master (#974) 2026-10-12 12:08:33 -07:00
lib/native commit to address NUTCH-1216 and update to CHANGES.txt 2011-12-09 14:52:15 +00:00
licenses-binary NUTCH-3215 Remove trailing whitespace reported by Yetus blanks on master (#974) 2026-10-12 12:08:33 -07:00
src [NUTCH-3232] Upgrade OkHttp to 5.5.1 (#986) 2026-11-05 08:47:26 -08:00
.asf.yaml Extend ASF GitHub integration branch protection patterns 2026-05-25 12:35:48 +02:00
.codespellrc NUTCH-3216 Fix remaining codespell findings flagged by Yetus on master (#978) 2026-10-13 17:34:29 -07:00
.gitignore NUTCH-3165 Remove the Nutch web service (#908) 2026-04-13 19:18:51 -07:00
.hadolint.yaml NUTCH-3197 Yetus: fix real precommit defects (shell, Docker, shelldocs) (#958) 2026-09-22 18:44:56 -07:00
.markdownlint.yaml NUTCH-3192 Address Yetus detsecrets/blanks and SonarCloud security findings in config templates and DummySSL (#944) 2026-07-29 13:57:01 +02:00
.markdownlintignore NUTCH-3198 Yetus: pay down historical style debt (authors, whitespace, markdown) (#979) 2026-10-17 20:20:18 -07:00
.spectral.yaml NUTCH-2932 Create OpenAPI specification for Nutch 1.x REST API (#896) 2026-04-12 15:21:33 -07:00
.yamllint.yml NUTCH-3163 Integrate Apache Yetus' pre-commit patch testing into Nutch GitHub Continuous Integration (#907) 2026-04-21 15:51:33 -07:00
AGENTS.md Add in-repo threat model and point AGENTS.md/SECURITY.md at it (#922) 2026-06-14 17:45:48 +02:00
build.xml NUTCH-3224 crawl --wait hour suffix waits 120 seconds instead of one hour (#988) 2026-11-05 08:11:15 -08:00
CHANGES.md Prepare for new development after release of 1.23 2026-09-08 13:24:43 +02:00
default.properties NUTCH-3224 crawl --wait hour suffix waits 120 seconds instead of one hour (#988) 2026-11-05 08:11:15 -08:00
eclipse-codeformat.xml added eclipse codeformat 2015-09-11 11:57:56 +00:00
Jenkinsfile.smoke-test-single-node-hadoop NUTCH-3211 Skip SonarCloud when test artifacts are absent; pin Ubuntu runners before ubuntu-latest moves to 26.04 (#966) 2026-09-22 18:38:29 -07:00
KEYS Fix KEYS for lewismc 2015-12-04 08:32:54 +00:00
LICENSE-binary NUTCH-3189 Upgrade core dependencies 2026-06-23 21:47:43 +02:00
LICENSE.txt NUTCH-2822 Split the LICENSE.txt file into two files for source resp. binary releases 2022-08-10 11:06:18 +02:00
NOTICE-binary NUTCH-3189 Upgrade core dependencies 2026-06-23 21:47:43 +02:00
NOTICE.txt Remove Any23 from Nutch 2023-09-13 11:03:09 -04:00
openapi.yaml NUTCH-2932 Create OpenAPI specification for Nutch 1.x REST API (#896) 2026-04-12 15:21:33 -07:00
README.md NUTCH-3197 Yetus: fix real precommit defects (shell, Docker, shelldocs) (#958) 2026-09-22 18:44:56 -07:00
SECURITY.md Add in-repo threat model and point AGENTS.md/SECURITY.md at it (#922) 2026-06-14 17:45:48 +02:00
sonar-project.properties NUTCH-3130 Address deprecated API usage across Nutch codebase and build (#967) 2026-09-22 18:23:20 -07:00
THREAT_MODEL.md NUTCH-3198 Yetus: pay down historical style debt (authors, whitespace, markdown) (#979) 2026-10-17 20:20:18 -07:00

Apache Nutch README

master pull request ci Quality Gate Status Smoke Test

Nutch logo

For the latest information about Nutch, please visit our website and wiki. To get started, see the Nutch Tutorial.

Contributing

To contribute a patch, follow these instructions (note that installing Hub is not strictly required, but is recommended).

  1. Download and install Hub
  2. File a JIRA issue for your fix
    • you will get issue id NUTCH-xxxx where xxxx is the issue ID.
  3. git clone https://github.com/apache/nutch.git
  4. cd nutch
  5. git checkout -b NUTCH-xxxx
  6. edit files (please try and include a test case if possible)
  7. git status (make sure it shows what files you expected to edit)
  8. Make sure that your code complies with the Nutch codeformatting template, which is basically two space indents
  9. git add <files>
  10. git commit -m "fix for NUTCH-xxx contributed by <your username>"
  11. hub fork (if hub is not installed, fork using the "fork" button on the Nutch GitHub project)
  12. git push -u <your git username> NUTCH-xxxx
  13. hub pull-request (if hub is not installed, please follow the instructions to create a pull-request from a fork)

Pre-commit / Apache Yetus

Pull requests run Apache Yetus test-patch for automated checks (style, reporting). See Basic Precommit and Usage Introduction. CI uses Java 17. To run test-patch locally (e.g. before opening a PR):

test-patch --basedir=/path/to/clean/repo --build-tool=nobuild \
  --plugins=all,-jira,-gitlab,-unit,-compile [patchfile]

Exclude patterns and related Yetus baselines can be added under .yetus/ (see .yetus/excludes.txt, .yetus/detsecrets-ignored-hashes.txt).

IDE setup

Eclipse

Generate Eclipse project files

ant eclipse

and follow the instructions in Importing existing projects.

You must configure the nutch-site.xml before running. Make sure you have added http.agent.name and plugin.folders properties. The plugin.folders normally points to <project_root>/build/plugins.

Now create a Java Application Configuration, choose org.apache.nutch.crawl.Injector, add two paths as arguments: first the crawldb directory, second the URL directory where the injector can read urls. Then run your configuration.

If we still see "No plugins found on paths of property plugin.folders=plugins", update the plugin.folders in the nutch-default.xml; this is a quick fix, but should not be used.

Intellij IDEA

First install the IvyIDEA Plugin. Then run ant eclipse. This creates the .classpath and .project files so Intellij can import the project.

In Intellij IDEA, select File > New > Project from Existing Sources. Select the nutch home directory and click "Open".

On the "Import Project" screen select the "Import project from external model" radio button and select "Eclipse". Click "Create". On the next screen the "Eclipse projects directory" should be already set to the nutch folder. Leave the "Create module files near .classpath files" radio button selected.

Click "Next" on the next screens. On the project SDK screen select Java 17 (or newer) and click "Create". N.B. On Mac with homebrew openjdk, use the directory under libexec: <openjdk_directory>/libexec/openjdk.jdk/Contents/Home.

Once the project is imported, you will see a popup saying "Ant build scripts found", "Frameworks detected - IvyIDEA Framework detected". Click "Import". If you don't get the pop-up, go through the steps again as this happens from time to time. There is another Ant popup that asks you to configure the project. Do NOT click "Configure".

To import the code-style: Intellij IDEA > Preferences > Editor > Code Style > Java. For the Scheme dropdown select "Project". Click the gear icon and select "Import Scheme" > "Eclipse XML file". Select the eclipse-format.xml file and click "Open". On the next screen check the "Current Scheme" checkbox and hit OK.

Running in Intellij IDEA

Running in Intellij

  • Open Run/Debug Configurations
  • Select "+" to create a new configuration and select "Application"
  • For "Main Class" enter a class with a main function (e.g. org.apache.nutch.indexer.IndexingJob)
  • For "Program Arguments" add the arguments needed for the class. You can get these by running the crawl executable for your job. Use full-qualified paths (e.g. crawldb and segments paths plus -deleteGone)
  • For "Working Directory" enter your nutch runtime/local path
  • Select "Modify options" > "Modify Classpath" and add the config directory for that Working Directory (e.g. runtime/local/conf)
  • Select "Modify options" > "Add VM Options" and add the VM options from running the crawl executable (e.g. -Xmx4096m -Dhadoop.log.dir=... etc.)

Note: You will need to manually trigger a build through ANT to get latest updated changes when running, because the ant build system is separate from the Intellij one.