Traffic-Analysis is a sample application to show a possibility to use H2O in conjunction with Spark Streaming.
To run this application, Apache Kafka, Elasticsearch, and Kibana must be installed.
- Download Apache Kafka 0.10.2.0 from https://kafka.apache.org/downloads
- Start Zookeeper: zookeeper-server-start.bat ../../config/zookeeper.properties
- Start Apache Kafka: kafka-server-start ../../config/server.properties
- kafka-topics.bat --list --zookeeper localhost:2181
- kafka-topics.bat --create --topic in.webcam.data --zookeeper localhost:2181 --partitions 1 --replication-factor 1
- kafka-console-consumer.bat --bootstrap-server localhost:9092 --whitelist in.webcam.data
- Download Elastisearch 5.2.2 from https://www.elastic.co/downloads/elasticsearch
- Donwload Kibana 5.2.2 from https://www.elastic.co/downloads/kibana
- Start Elastisearch via elastisearch.bat in the bin folder.
- Start Kibana via kibana.bat in the bin folder.
- Go to localhost:5601 and create a new index pattern "analysis*" via the management tab.
- Via the visualize tab one can create a new Line chart, where the the timestamp t is on the X-Axis and count, i.e. the number of cars, is on the Y-Axis.
It is assumed that, according to the above description Kafka, Elasticsearch and Kibana are already running.
- Start the DataPublisher class in order to send images from BayernInfo to the Kafka topic in.webcam.data.
- Start the Spark Streaming Job TrafficAnalysisApplication.
- You can contact Andreas Wittmann on any issue via E-Mail
- Visit the company I'm working for BFFT Gesellschaft für Fahrzeugtechnik mbH