In this post we will discuss the differences between Java vs Hive with the help of word count example.
We will examine the Word Count Algorithm first using the Java MapReduce API and then using Hive.
The following Java implementation is included in the Apache Hadoop distribution.
For implementing the Word Count algorithm we need to write 63 lines of Java code and we need to compile it and build a Jar file with the classes. We have to execute this main class WordCount with below command