Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rahulkumar-aws/wordcount

Example code of Scala and Spark Word Count.
https://github.com/rahulkumar-aws/wordcount

Last synced: about 1 month ago
JSON representation

Example code of Scala and Spark Word Count.

Awesome Lists containing this project

README

        

## Introduction

**Sample code for Apache Spark Word Count.**

*Scala Word Count example:*

```sbt "run-main ScalaWordCount src/main/resources/sherlockholmes.txt out.txt"```

*Apache Spark Word Count example*

```sbt "run-main ScalaWordCount src/main/resources/sherlockholmes.txt out"```

*Apache Spark Network Word Count example*

```$ nc -lk 9999```

rahul kumar

```sbt "run-main StreamingWordCount"```

*OutPut :*

*-------------------------------------------*

*Time: 1439458120000 ms*

*-------------------------------------------*

*(rahul,1)*

*(kumar,1)*