wordscounterapp analyses a file and counts unique words. it saves word count in the database.
JDK 8 : Here is a guide on how to install JDK8.
MongoDB 4.2.0 Here is a guide on how to install MongoDB 4.2 on windows.
Open Task.docx file to for steps to create sharded cluster after MongoDB installation
Download wordscounterapp.jar file and run it with below parameters
java –Xmx8192m -jar wordscounterapp.jar –source dump.xml –mongo hostname:port
Fork the repository
Clone the repository
git clone https://github.com/jigneshcoder/wordscounterapp.git
Open wordscounterapp in Eclipse (Import existing Maven project)
From eclipse, build the project using goals "clean package"
If the build is successful it will create two executable jar files
wordscounterapp.jar
wordscounterapp-jar-with-dependencies.jar
Run the wordscounterapp-jar-with-dependencies.jar with below parameters
java –Xmx8192m -jar wordscounterapp-jar-with-dependencies.jar –source dump.xml –mongo hostname:port
here dump.xml is any file of the text located in the computer
(e.g. D:/testfile/dump.xml)
hostname:port is name of the MongoDB server host and the port.
(e.g. localhost:27017 or localhost:27017,localhost:27020)