hortonworks/fieldeng-device-manager-demo

Name: fieldeng-device-manager-demo

Owner: Hortonworks Inc

Description: null

Created: 2017-06-05 21:30:31.0

Updated: 2017-06-15 20:03:49.0

Pushed: 2017-06-05 21:30:49.0

Homepage: null

Size: 2675

Language: Java

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

DeviceManagerDemo

The Device Manager Demo is designed to demonstrate a fully functioning modern Data/IoT application. It is a Lambda architecture built using the Hortonworks Data Platform and Hortonworks Data Flow. The demo shows how a Telecom can manage customer device outages using predictive maintenance and a connected workforce.

Install DeviceManagerDemo

Download and Import Hortonworks Sandbox 2.4 for Virtual Box.

Should work with VMWare but has not been tested.

Modify local hosts file so that sandbox.hortonworks.com resolves to 127.0.0.1 (This is important and may break the simulator and UI)

Configure Virtual Box Port Forward

8082 ? HDF_HTTP_Ingest

8090 - MapUI

8091 - Cometd

9090 ? HDF_Studio

Start Sandbox, SSH to Sandbox (ssh root@sandbox.hortonworks.com -p 2222)

Wait for Sandbox to fully boot up, all service need to finish starting

Change Ambari password to “admin” (ambari-admin-password-reset)

(!!!!!!!!!!!!!AMBARI PASSWORD MUST BE SET TO “admin” (no quotes)!!!!!!)

cd /root (use the /root directory to begin the install)

git clone https://github.com/vakshorton/DeviceManagerDemo.git

(make sure that git cloned to /root/DeviceManagerDemo)

cd DeviceManagerDemo

./install.sh

Install script reboot once complete. This is required to refresh session configuration.

Wait for Sandbox to fully reboot

Log back in via SSH (ssh root@sandbox.hortonworks.com -p 2222)

Start Demo

The script to start demo services should be located in the /root/DeviceManagerDemo directory

./startDemoServices.sh

Slider will download the servlet (UI) docker containers from the docker hub so it may take a few minutes for the application server to start

Bring up the UI in a Browser: http://sandbox.hortonworks.com:8090/MapUI/DeviceMap

Start Simulation:

The Simulator should be located in the DeviceManagerDemo directory

java -jar DeviceSimulator-0.0.1-SNAPSHOT-jar-with-dependencies.jar Technician 1000 Simulation

java -jar DeviceSimulator-0.0.1-SNAPSHOT-jar-with-dependencies.jar STB 1000 Simulation

USAGE:

java -jar simulator.jar arg1=Simulator-Type{BioReactor|FiltrationSystem} arg2=EntityId{1000} arg3={Simulation|Training}

Example:

java -jar DeviceSimulator-0.0.1-SNAPSHOT-jar-with-dependencies.jar Technician 1000 Simulation

java -jar DeviceSimulator-0.0.1-SNAPSHOT-jar-with-dependencies.jar STB 1000 Simulation

MAP UI

Alt text


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.