Skip to content

arjunmantri/sensoranalytics

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PREREQUISITE

  • Java
  • SBT
  • Spark

#Building and Running Streaming Application

  • Run the command sbt clean pack
  • To run the streaming application change directory(cd) to the spark folder.(cd /mnt/installation/spark-1.4.1-bin-hadoop2.6)
    • If you want to run rest server on yarn
      • run the command bin/spark-submit --class com.shashi.spark.streaming.StreamingMain --master yarn-client <path to rest api jar> <appname> <batchtime> <windowtime> <slidetime>
      • path of the rest api jar will be /target/pack/lib/core_2.10-0.1.jar

###Example run command

bin/spark-submit --class com.shashi.spark.streaming.StreamingMain --packages com.datastax.spark:spark-cassandra-connector_2.10:1.5.0-M3,org.apache.spark:spark-streaming-kafka_2.10:1.5.2 --master local[2] /home/hadoop/interests/streamingapp/streamingapp/target/pack/lib/core_2.10-0.1.jar sensoranalytics 15 60 60

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Scala 100.0%