Apache Nutch is an extensible and scalable web crawler
How to Upgrade Elasticsearch in Nutch
Upgrade Elasticsearch dependency in src/plugin/indexer-elastic/ivy.xml
Upgrade the Elasticsearch specific dependencies in src/plugin/indexer-elastic/plugin.xml To get the list of dependencies and their versions execute: $ cd src/plugin/indexer-elastic/ $ ant -f ./build-ivy.xml $ ls lib | sed 's/^/ <library name="/g' | sed 's/$/"/>/g'
In the plugin.xml replace all lines between
and
with the output of the command above.
(Optionally) remove overlapping dependencies between indexer-elastic and Nutch core dependencies:
- check for libs present both in build/lib and build/plugins/indexer-elastic/ (eventually with different versions)
- duplicated libs can be added to the exclusions of transitive dependencies in build/plugins/indexer-elastic/ivy.xml
- but it should be made sure that the library versions in ivy/ivy.xml correspond to those required by Tika
Remove the locally "installed" dependencies in src/plugin/indexer-elastic/lib/:
$ rm -rf lib/
Build Nutch and run all unit tests:
$ cd ../../../ $ ant clean runtime test