Code Monkey home page Code Monkey logo

docker-nutch-elasticsearch-mongodb's Introduction

Apache Nutch, Elasticsearch, MongoDB

This repo contains 1) a Dockerfile build for Apache Nutch and 2) a docker-compose Setup for the usage with Elasticsearch and MongoDB.

Info: Currently MongoDB is not attached and used.

Apache Nutch Docker Build

The Dockerfile provides a Docker Build of Apache Nutch published as smartive/nutch. There are two published builds:

Apache Nutch docker-compose Setup for Elasticsearch 2.3.* and 5.4.* and MongoDB

This repo nutch-elasticsearch-mongodb contains a docker-compose configuration for Apache Nutch with Elasticsearch 2.3.* / 5.4.* and MongoDB.

To get started checkout the Repo and run:

git clone [email protected]:smartive/docker-nutch-elasticsearch-mongodb.git
cd ./docker-nutch-elasticsearch-mongodb && docker-compose up

This will fire up the nutchserver and webapp. Visit http://localhost:8080/.

Manual Run

docker-compose run -p 8080:8080 -p 8081:8081 --name=manual_nutch --rm --entrypoint=bash nutch

Then inside the docker box create the seed file:

echo "https://smartive.ch/" > seed.txt

Then open regex-urlfilter.txt and replace the last line to limit the crawl to the domain smartive.ch:

vi nutch/conf/regex-urlfilter.txt
# Inside regex-urlfilter.txt replace the last line `+.` with:
+^https://smartive\.ch

Then start the crawl

nutch/bin/crawl -i -s seed.txt crawldata 2

ES index only from existing crawl database:

/root/nutch/bin/nutch index crawldata/crawldb -linkdb crawldata/linkdb crawldata/segments/20170706210640

Credits

This Dockerfile and docker-compose Setup is partly based on tpickett/mongo-elasticsearch-nutch.

Apache Nutch is a highly extensible and scalable open source web crawler software project. A well matured, production ready crawler.

docker-nutch-elasticsearch-mongodb's People

Contributors

mfeltscher avatar thilohaas avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.