A web crawler is a bot program that fetches resources from the web for the sake of building applications like search engines, knowledge bases, etc. Sparkler (contraction of Spark-Crawler) is a new web crawler that makes use of recent advancements in distributed computing and information retrieval domains by conglomerating various Apache projects like Spark, Kafka, Lucene/Solr, Tika, and Felix. Sparkler is an extensible, highly scalable, and high-performance web crawler that is an evolution of Apache Nutch and runs on Apache Spark Cluster.
Sparkler is being proposed to Apache Incubator. Review the proposal document and provide your suggestions here here Will be done later, eventually!
- Provides Higher performance and fault tolerance: The crawl pipeline has been redesigned to take advantage of the caching and fault tolerance capability of Apache Spark.
- Supports complex and near real-time analytics: The internal data-structure is an indexed store powered by Apache Lucene and has the functionality to answer complex queries in near real time. Apache Solr (Supporting standalone for a quick start and cloud mode to scale horizontally) is used to expose the crawler analytics via HTTP API. These analytics can be visualized using intuitive charts in Admin dashboard (coming soon).
- Streams out the content in real-time: Optionally, Apache Kafka can be configured to retrieve the output content as and when the content becomes available.
- Java Script Rendering Executes the javascript code in webpages to create final state of the page. The setup is easy and painless, scales by distributing the work on Spark. It preserves the sessions and cookies for the subsequent requests made to a host.
- Extensible plugin framework: Apache Felix, an open source community implementation of Open Service Gateway Initiative (OSGi) is embedded under the hood of Sparkler to make it extensible with the plugins.
- Universal Parser: Apache Tika, the most popular content detection, and content analysis toolkit that can deal with thousands of file formats, is used to discover links to the outgoing web resources and also to perform analysis on fetched resources.
Click here for quick start guide : https://github.com/uscdataScience/sparkler/wiki/sparkler-0.1
- Apache Solr - (required at runtime) - config files (schema) are in
conf/solr
folder. - Apache Maven - (required to build)
- Apache Kafka - (optional, to stream output)
Setup instructions https://github.com/uscdataScience/sparkler/wiki/sparkler-0.1#requirements
If you don't want to build by hand there are a couple of ways to run Sparkler:
To build this project, cd
to the root directory of the sparkler and run the following command:
mvn clean install
Note that this is a multi-module maven project with OSGI bundle support using Apache Felix.
On success, the build produces sparkler-app/target/sparkler-app-xx.jar
For detailed instuctions, visit the wiki page: Build and Deploy
This is a multi module maven project
Module Name | Path | Description | Remarks |
---|---|---|---|
sparkler-api | /sparkler-api | This project defines contracts for plugins and provides common utilities. | This should be shared by all plugins |
sparkler-app | /sparkler-app | This project is the main application that runs on sparks and uses all plugins | |
sparkler-plugins | /sparkler-plugins | This project contains build configurations for all plugins |
Plugin Name | Path | Description | Remarks |
---|---|---|---|
urlfilter-regex | /sparkler-plugins/urlfilter-regex | This plugin provides URL Filter extension | An example plugin in OSGI bundle |
fetcher-jbrowser | /sparkler-plugins/fetcher-jbrowser | This plugin use headless browser to fetch a URL | An OSGI bundle which helps to fetch Javascript enabled pages |
In case you have any questions or suggestions, please drop them at [email protected]
Website: http://irds.usc.edu