Hadoop WordCount example - Maven project
- Import the project in Eclipse using "Existing Maven Projects"
- Locate class WordCountFileSystem
- Change the inputPath to the path value of the directory path with the files you want to analyze
- Run
- Import the project in Eclipse using "Existing Maven Projects"
- Locate class WordCountCassandraOutput
- Change the INPUT_DIR_PATH to the path value of the directory path with the files you want to analyze
- Download Cassandra and run it locally
- Create Cassandra keyspace with the name cql3_worldcount
- Create Cassandra columnfamily in the keyspace created in 5. with the following: CREATE TABLE cql3_worldcount.output_words ( word text PRIMARY KEY, count_num text )
- Run