Giter Club home page Giter Club logo

gspark's Introduction

Spark Groovy

Sandbox testing Groovy based Spark applications

Quickstart

Download and unzip Spark in a directory of your choice, then set the SPARK_HOME directory.

Clone this repo:

git clone https://github.com/pditommaso/spark-groovy.git
cd spark-groovy

Compile the examples:

./gradlew jar 

Launch the GroovyWordCount:

$SPARK_HOME/bin/spark-submit \
  --class "org.apache.spark.examples.GroovyWordCount" \
  build/libs/gspark-1.0.jar 
  README.md

Deploy jobs on a local cluster

Launch the Spark master:

$SPARK_HOME/sbin/start-master.sh

Launch a Spark worker:

$SPARK_HOME/sbin/start-slave.sh spark://$HOSTNAME:7077 -c 1 -m 1G

Run the Groovy PI example:

$SPARK_HOME/bin/spark-submit \
  --class org.apache.spark.examples.GroovySparkPi \
  --master spark://$HOSTNAME:7077 \
  build/libs/gspark-1.0.jar       

Check the Spark daskbord opening the browser at the address http://localhost:8080/

Stop master and slave instances:

$SPARK_HOME/sbin/stop-slave.sh && $SPARK_HOME/sbin/stop-master.sh

Deploy Ignite application over a Spark cluster

Compile the project:

./gradlew shadowJar

Launch the Ignite example:

$SPARK_HOME/bin/spark-submit \
    --class org.apache.ignite.examples.GroovyIgniteSimpleApp \
    --master spark://$HOSTNAME:7077 \
    build/libs/gspark-1.0-all.jar 

gspark's People

Contributors

pditommaso avatar slobolai avatar

Watchers

 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.