Skip to content

Latest commit

 

History

34 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wordscounterapp

wordscounterapp analyses a file and counts unique words. it saves word count in the database.

Getting Started

Prerequisites

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

Usage

Download wordscounterapp.jar file and run it with below parameters

java –Xmx8192m -jar wordscounterapp.jar –source dump.xml –mongo hostname:port

How to run

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)

Contributions

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages