GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - StevenYang88/nwatechsummit-2015: nwatechsummit-2015

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

24 Commits
24 Commits

Folders and files

NameName
Last commit message
Last commit date
bin
bin
 
 
project
project
 
 
src/main/scala
src/main/scala
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
build.sbt
build.sbt
 
 

Repository files navigation

#Kudu Meetup Spark Streaming Example

For the moment kudu-spark (from tmalaska/SparkOnKudu) is included as there are no published artifacts yet.

Follow instructions to setup kudu sandbox or run against your own: http://getkudu.io/docs/quickstart.html

ssh into VM: ssh [email protected]

Install git: sudo yum install git

Clone repo: git clone https://github.com/silicon-valley-data-science/nwatechsummit-2015.git

Install sbt: http://www.scala-sbt.org/0.13/tutorial/Installing-sbt-on-Linux.html From link (may need refreshed):

curl https://bintray.com/sbt/rpm/rpm | sudo tee /etc/yum.repos.d/bintray-sbt-rpm.repo
sudo yum install sbt

Build:

cd ~/nwatechsummit-2015
sbt package
sbt assembly

Remove bad manifest entry
zip -d target/scala-2.10/kudu-meetup-assembly-1.0.jar META-INF/*.RSA META-INF/*.DSA META-INF/*.SF

Download Spark 2.1 for Hadoop 2.7+ (http://spark.apache.org/downloads.html) From link (may need refreshed) and expand into home dir:

cd ~
wget https://d3kbcqa49mib13.cloudfront.net/spark-2.1.1-bin-hadoop2.7.tgz
tar xvf spark-2.1.1-bin-hadoop2.7.tgz

Create Kudu Tables:

cd ~/nwatechsummit-2015/bin
./CreateMeetupKuduTable.sh
./CreateMeetupLoadSummaryKuduTable.sh
./CreateMeetupPredictionKuduTable.sh

Setup and start Kafka locally (or use existing install): http://kafka.apache.org/documentation.html#quickstart

Clone Meetup Stream Kafka Loader: git clone https://github.com/silicon-valley-data-science/strataca-2015.git

Install Maven on sandbox - http://preilly.me/2013/05/10/how-to-install-maven-on-centos/ :

Build Meetup Stream Kafka Loader

cd ~/strataca-2015/Building-a-Data-Platform/tailer2kafka/
mvn install

Start Curl to File: nohup bin/run_curl_meetup_stream.sh &

Start Tail File to Kafka: nohup bin/run_tailer2kafka.sh &

Run Streaming Prediction:

cd ~/nwatechsummit-2015/bin
./RunKuduMeetupStreamingPrediction.sh

Run Raw data to Kudu: ./RunKuduMeetup.sh

Go to http://quickstart.cloudera:8051, click tables tab then click each meetup table (for example kudu_meetup_rsvps) to get schema for impala table

Run impala-shell: impala-shell

Paste in create tables from above thenquery kudu meetup table:

select * from kudu_meetup_rsvps limit 2;
select * from kudu_meetup_rsvps_predictions limit 2;
select * from kudu_meetup_rsvps_load_summary limit 2;

About

nwatechsummit-2015

Resources

Readme
Apache-2.0 license
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.