Giter VIP home page Giter VIP logo

spark-examples's Introduction

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 ./install.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

spark-examples's People

Contributors

yingmao avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.