Lucas is a hazelcast client designed for making map reduce queries over movies with the JSONs obtained from OMDb API. These queries are:
- The N most popular actors (Popularity is measured by the IMDB votes)
- For each year, greater than the year tope, the most acclaimed movie (Based on the Metascore)
- The pairs of actors that appeared on more movies, and for each, the list of the movies
- For each director, the fetish actors, meaning the actors that appeared on more movies of the director
./gradlew shadowJar
This command will produce an executable jar in the ./build/libs/
directory.
You can run an instance easily running
./src/main/resources/instance.sh
And each query can be run with
java -Daddresses=(ADDRESS OF A NODE) -jar ./build/libs/(JAR) query=(QUERY NUMBER) [n=(NUMBERS OF ACTORS)|tope=(MINIMUM YEAR)] path=(PATH TO A JSON)
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Lucas is available under the GNU General Public License v2.0 License.