Git Product home page Git Product logo

spark-springboot's Introduction

spring-spark-example

An example of setting up Spring-Boot with Spark with simple word count application

  1. It can be run either in IDE or an maven application.
  2. $ spark-springboot> mvn clean install package -e -DskipTests=true
  3. If you don't want to skip the tests exclude -DskipTests=true in above step 2.
  4. $ spark-springboot/target> java -jar spark-springboot.jar
  5. Else in shot you can call $ spark-springboot> mvn clean install spring-boot:run -e
  6. You can hit http://localhost:8080/api/wordcount to view the output.
  7. You can also visualize your spark-jobs execution using http://localhost:4040/

OpenShift Oshninko Cluster

  1. oc new-project demo
  2. oc create -f https://raw.githubusercontent.com/Pkrish15/spark-drools/master/resources.yaml
  3. oc new-app oshinko-webui
  4. oc get routes
  5. oc new-app --template oshinko-java-spark-build-dc
    -p APPLICATION_NAME=spark-springboot
    -p APP_MAIN_CLASS=com.redhat.gpte.SparkExperimentApplication
    -p GIT_URI=https://github.com/Pkrish15/spark-springboot
    -p APP_FILE=spark-springboot.jar

spark-springboot's People

Contributors

pkrish15 avatar

Stargazers

 avatar Arslan Aziz avatar  avatar talipkorkmaz avatar Thomas Butler avatar

Watchers

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