Here, let us try to share some code which can be used without doing anything for Hadoop or BigData thing here.
Below I will be sharing the code which I tested locally try Spark on Eclipse.
Note :- While creating the Maven project, check your compiler & runtime exe both are pointing to jdk1.8 for below code.
Also note that implementation of Serializable.
I have used -
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-core_2.12</artifactId>
<version>2.4.6</version>
</dependency>
Below I will be sharing the code which I tested locally try Spark on Eclipse.
Note :- While creating the Maven project, check your compiler & runtime exe both are pointing to jdk1.8 for below code.
Also note that implementation of Serializable.
I have used -
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-core_2.12</artifactId>
<version>2.4.6</version>
</dependency>
WordCount