Skip to content

LastCossack1337/spark-examples

 
 

Repository files navigation

Spark Installation and examples

  1. Update the manager and worker to your nodes' IP.
  2. Configure your 3-node cluster so that they can login without using password.
  3. Git clone the repository at the root directory
  4. Run ./insall.sh
  5. Run ./start.sh
  6. Run other examples
  7. If you have node-0 not recognized error, please replace your the node-0, in the code, to your manager's IP address
  8. The spark-shell is located at /usr/local/spark/bin/spark-shell

RDD Examples

  1. rdd-distinct: re-order the data
  2. rdd-filter: apply filter to the data
  3. rdd-flatmap: flatten the map data
  4. rdd-kv: the key / value tests
  5. rdd-map: map tests
  6. rdd-maxmin: maximum and minimum test
  7. rdd-union: union test
  8. text-search: search on the text

Spark Shell

  1. file: file operations
  2. list: list operations
  3. max-count: count the maximum number of words a line
  4. sort: sort on data
  5. words: word with maximum occurrences

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 56.0%
  • Scala 26.3%
  • Shell 17.7%