Code Monkey home page Code Monkey logo

sparklearnings's Introduction

SparkLearnings

A place you can learn spark from basics

How to Install in Mac: Basic set up requires

  1. Install Apache Spark using Homebrew. a. Install Homebrew if you don’t have it already by entering this from a terminal prompt: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" b. Enter brew install apache-spark c. Create a log4j.properties file via cd /usr/local/Cellar/apache-spark/2.0.0/libexec/conf cp log4j.properties.template log4j.properties (substituted 2.0.0 for the version actually installed) d. Edit the log4j.properties file and change the log level from INFO to ERROR on log4j.rootCategory.
  2. Install the Scala IDE from http://scala-ide.org/download/sdk.html
  3. Test it out! a. Cd to the directory apache-spark was installed to (such as /usr/local/Cellar/apachespark/2.0.0/libexec/) and then ls to get a directory listing. b. Look for a text file we can play with, like README.md or CHANGES.txt c. Enter spark-shell d. At this point you should have a scala> prompt. If not, double check the steps above. e. Enter val rdd = sc.textFile(“README.md”) (or whatever text file you’ve found) f. Enter rdd.count() g. You should get a count of the number of lines in that file! Congratulations, you just ran your first Spark program! h. Hit control-D to exit the spark shell, and close the console window i. You’ve got everything set up! Hooray!

If you donot set up your Environment variables cd /usr/local/Cellar/apache-spark/2.1.0/libexec spark-shell The above syntax will get you into scala shell.

** - COPY ALL THE LIB FILES FROM JARS FOLDER INSIDE libexec folder into your project folder to get visibility for Scala Eclipse to add external jars under properties inorder to run a scala program

sparklearnings's People

Contributors

venkatachadalawada avatar

Watchers

James Cloos avatar  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.