Giter VIP home page Giter VIP logo

smack's Introduction

SMACK

Installation setup

First setup

To download and extract the installation files for the first time, just run this command :

ZIP=~/setup.zip; cd ~; wget -O $ZIP https://raw.githubusercontent.com/leogouttefarde/smack/master/setup.zip; sudo apt -y install unzip; unzip -o $ZIP

Further updates

To check for new installation updates, run ~/scripts/update_setup.sh

Installation scripts

Installation

Run ~/scripts/install_all.sh

Uninstallation

Run ~/scripts/uninstall_all.sh

Display setup version hash

Run ~/scripts/version.sh

Cluster launching scripts

Launching Mesos cluster

Run ~/scripts/run_mesos_cluster.sh

Launching Kafka cluster

The number of kafka brokers is configured through the script argument

Run ~/scripts/run_kafka_cluster.sh <NB_KAFKA_BROKERS>

Launching Cassandra cluster

Run ~/scripts/run_cassandra_cluster.sh &

Cluster stopping scripts

Stopping Mesos cluster

Run ~/scripts/stop_mesos_cluster.sh

Stopping Kafka cluster

Run ~/scripts/stop_kafka_cluster.sh

Stopping Cassandra cluster

Run ~/scripts/stop_cassandra_cluster.sh

Server killing scripts

Killing Mesos from a server

Run ~/scripts/kill_mesos_server.sh <server>

Killing Cassandra from a server

Run ~/scripts/kill_cassandra_server.sh <server>

Killing Kafka from a broker

Run ~/scripts/kill_kafka_broker.sh <brokerNumber>

Demo

Preliminary demo

wget -O ~/app_demo.zip https://github.com/leogouttefarde/smack/blob/master/app_demo.zip?raw=true; unzip -o app_demo.zip; cd ~/app_demo; sudo ../spark-2.0.2-bin-hadoop2.7/bin/spark-submit --packages datastax:spark-cassandra-connector:2.0.0-M2-s_2.11 --class "SimpleApp" --master mesos://zk://server-1:2181/mesos target/scala-2.11/simple-project_2.11-1.0.jar

Final demo

First, run ~/scripts/download_demo.sh to download the application.

Launching the producer

scala -classpath "lib/kafka_2.11-0.8.2.0.jar:lib/kafka-clients-0.8.2.0.jar:lib/scala-library-2.10.4.jar:lib/slf4j-api-1.7.2.jar:target/scala-2.10/spark-example-kafka_2.10-1.0.jar" ProducerTest

Launching the consumer

sudo ../spark-2.0.2-bin-hadoop2.7/bin/spark-submit --packages datastax:spark-cassandra-connector:2.0.0-M2-s_2.11 --jars lib/kafka_2.11-0.10.1.0.jar,lib/kafka-clients-0.10.1.0.jar,lib/slf4j-api-1.7.2.jar --class "ConsumerToSpark" target/scala-2.11/spark-example-kafka_2.11-1.0.jar

Launching the demo

cd ~; cp ~/app_demoV2/target/scala-2.11/simple-project_2.11-1.0.jar .; sudo ~/spark-2.0.2-bin-hadoop2.7/bin/spark-submit --packages datastax:spark-cassandra-connector:2.0.0-M2-s_2.11 --class "batch.SelectJob" simple-project_2.11-1.0.jar

smack's People

Contributors

ansari-othmane avatar boudouip avatar kedevked avatar leogouttefarde avatar othmanen avatar

Stargazers

 avatar

Watchers

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