This repository is the home of the code and presentation from the talk JSR-352, Spring Batch, and You by Michael Minella.
The source of the data for this example must be downloaded via BitTorent. You can find more information about the input file here: Star Wars Kid: The Data Dump
To run the samples, you'll need to install the GeoLite2 database for the geolocation to work. You can download the database here: GeoLite2 Country Database. The paths for the database are currently hardcoded in the GeocodingItemProcessor to /usr/local/share/GeoIP/GeoLite2-Country.mdb. You can either drop the database there or change the path to meet your needs.
The other place paths are currently hard coded is in the ReportBatchlet. The output of the job will be written to /tmp/jsr_temp/output/index.html. If this doesn't work for you, feel free to change the paths as you need. Wherever you generate the output file at, you'll need to copy the javascript libraries over before invoking the python command to serve the site.
By Default this will run using HSQLDB. The configuration provided also offers MySql as well.
The Raw JSR version
mvn clean install -P jsr
java -jar jsr-talk-1.0.0.BUILD-SNAPSHOT.jar logAnalysis inputFile=/tmp/jsr_temp/swk_small.log stagingDirectory=/tmp/jsr_temp/out/
Spring Version
mvn clean install -P jsr
java -jar jsr-talk-1.0.0.BUILD-SNAPSHOT.jar logAnalysisWithSpring inputFile=/tmp/jsr_temp/swk_small.log stagingDirectory=/tmp/jsr_temp/out/
Both versions
python -m SimpleHTTPServer 8008