Marouane-Elgoumiri / Spark_word_count

Words count example with Apache Spark and Java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple Word Count with Spark & Java

Java Apache Spark Apache Maven Intellij Idea

Note:

Reading input file and defining source result:

  new sparkwordcount().run("src/main/resources/input/testo.txt","src/main/resources/output");
  new sparkwordcount().run(args[0],args[1]);

Creating the new source result:

  String NewsourceResult = sourceResult + "_new";

save the counts and countData:

  countData.saveAsTextFile(NewsourceResult);
  counts.saveAsTextFile(NewsourceResult);

openSource

About

Words count example with Apache Spark and Java


Languages

Language:Java 100.0%