Please provide your feedback in this short Flings' survey.
fling logo of Sample Data Platform on VMware Cloud Foundation with VMware Tanzu for Kubernetes Provisioning

Sample Data Platform on VMware Cloud Foundation with VMware Tanzu for Kubernetes Provisioning

version 1.1 — November 11, 2020

Summary

Data is king and your users need a modern data platform quickly.

With this Fling, you will leverage your VMware Cloud Foundation 4.0 deployment and stand a sample data platform on a Tanzu Kubernetes Grid guest cluster in less than 20-minutes comprising of Kafka, Spark, Solr, and ELK.

Additionally, this Fling comes with a market data sample application (using real market data from dxFeed) that shows how all these data platform components work together.

The diagram below depicts the final outcome of the Data Platform on VCF4.0:

The sample market data app:

The diagram below depicts the final outcome of the Market Data Sample App:

  1. Data Platform Provisioning: automation instantiates Kafka, Spark, Solr, ELK in 20 minutes.
  2. Kafka Publisher: Retrieves delayed market data from publicly available DevExpert dxfeed and publishes it on multiple Kafka topics
  3. Spark Subscriber : Subscribes to the market data from Kafka topics, manipulates the data and finally writes into Solr.
  4. Logstash Subscriber : Subscribes to the market data from Kafka topics and writes into Elasticsearch through logstash and also creates a kibana dashboard.

About dxFeed - https://www.dxfeed.com : it is a subsidiary of Devexperts, with the primary focus of delivering financial markets information and services to buy-side and sell-side institutions of the global financial industry, specifically to traders, data analysts, quants and portfolio managers.

Sample Trades data from dxFeed:

  {"Trade" : {
    "MSFT" : {
      "eventSymbol" : "MSFT",
      "eventTime" : 0,
      "time" : 1598385600578,
      "timeNanoPart" : 0,
      "sequence" : 200,
      "exchangeCode" : "Q",
      "price" : 216.47,
      "change" : 0.0,
      "size" : 2197641.0,
      "dayVolume" : 8833.0,
      "dayTurnover" : 1917851.3,
      "tickDirection" : "ZERO_UP",
      "extendedTradingHours" : false
    }}} 

Sample Quotes data from dxFeed:

 {"Quote" : {
    "MSFT" : {
      "eventSymbol" : "MSFT",
      "eventTime" : 0,
      "sequence" : 0,
      "timeNanoPart" : 0,
      "bidTime" : 1598433071000,
      "bidExchangeCode" : "P",
      "bidPrice" : 217.17,
      "bidSize" : 3.0,
      "askTime" : 1598433300000,
      "askExchangeCode" : "P",
      "askPrice" : 217.39,
      "askSize" : 1.0
    }}} 

Final Output: Kibana Dashboard

 

Stay tuned for future VMware Tanzu data platforms initiatives.

Part One:

 

Part Two:

Requirements

  • Kubernetes cluster with 1 control plane and 8 worker nodes.
  • Control Plane: 1 Small VM (2 CPUs, 2GB RAM)
  • Worker Nodes: 8 Large VMs (4 CPUs, 16GB RAM)

Instructions

Sample Data Platform Fling

Data is king and your users need a sample data platform quickly.

With this Fling, you will leverage your VMware Cloud Foundation 4.0 deployment and stand a sample data platform on a Tanzu Kubernetes Grid guest cluster in less than 20-minutes comprising of Kafka, Spark, Solr, and ELK.

Setup Instructions

Run the below commands to untar dataplatforms-fling-package-kubernetes.tar.gz

tar -xvf dataplatforms-fling-package-kubernetes.tar.gz

cd kubernetes

BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && cd .. && pwd)"

We have divided the Data Platform automation in three parts:

  • Infrastructure: Setup of Tanzu Kubernetes Guest Cluster (VMware Cloud Foundatation configured as per VMware Validated Design (VVD)). The final outcome is a k8s cluster with 8 workers as per yaml file.
  • Data Platform Components: Installation of Kafka, Spark, Solr and ElasticSearch.
  • Market Data Sample App: Installation of the Market Data Sample App, an app that reads from an external source (market data from dxfeed ) and adds data on data platform.

Infrastructure: Tanzu Kubernetes Grid (TKG) Guest Cluster on VMware Cloud Foundation

You will need to have VMware Cloud Foundation configured following the practices as stated on VMware Validated Design - VVD.

We added some pre-flight check steps on your VMware Cloud Foundation cluster before installing the Data Platform. See README on $BASE_DIR/kubernetes/infrastructure/vvd.

But at very high level, you will need to apply a TanzuKubernetesCluster manifest file and generate a kubeconfig.

cd $BASE_DIR/kubernetes/infrastructure/vvd

# login on the supervisor cluster before running the following
kubectl apply -f dp-k8s-cluster-tkc.yaml 

Sample Data Platform Components

Once the Tanzu Kubernetes Cluster is running with at least 8 workers in Ready status, you can install the data platform components with install script - datacomponents/setup-dp-components.sh. Please check the README on $BASEDIR/kubernetes/datacomponents for more details on the validation of the data platform setup.

Dependencies: Please ensure the following command line utilities are present in your system before you proceed with the installation:

  1. kubectl
  2. git
cd $BASE_DIR/kubernetes
cp $BASE_DIR/kubernetes/datacomponents/setup-dp-components.sh .
sh setup-dp-components.sh -c all

By the end of this execution, you will have Bitnami Kafka (default), Spark, Solr and Elastic Search installed.

Market Data Sample App

Once you stood up the sample data platform components, you can install the market data sample app that consume market data from dxfeed.com and publish kafka topics and write on Solr using install script - $BASE_DIR/kubernetes/marketdata-sampleapp/setup-marketdata-sampleapp.sh. You can check the README on $BASE_DIR/kubernetes/marketdata-sampleapp for more details on the validation of the market data sample app.

cd $BASE_DIR/kubernetes
cp $BASE_DIR/kubernetes/marketdata-sampleapp/setup-marketdata-sampleapp.sh .
sh setup-marketdata-sampleapp.sh
Please go through the README on datacomponents and marketdata-sampleapp directories for the final outcome validation.

 

Changelog

Version Update 1.1

  • Bug fix for storage class for bitnami kafka

Similar Flings

No similar flings found. Check these out instead...
Apr 02, 2020
fling logo of App Finder for Tunnel

App Finder for Tunnel

version 2.0

It helps admins to find out bundle ids, designated requirement & path for any application. Currently it is supported only for macOS platform.

Jul 09, 2018
fling logo of Policy Builder

Policy Builder

version 1.0.0

This cloud hosted Fling helps users with custom Mobile Device Management (MDM) policy generation that use MDM capabilities available through Microsoft's Windows 10 MDM Configuration Service Providers (CSPs).

Sep 28, 2020
fling logo of Diagnostic Tools for Workspace One Tunnel Client

Diagnostic Tools for Workspace One Tunnel Client

version 1.0

Diagnostic tools for Workspace ONE Tunnel client offers tools and script to identify and troubleshoot any client related issues on specific platforms. The first version included support for Windows desktop tunnel client and future version will include support for other platforms.

Dec 17, 2020
fling logo of Supernova - Accelerating Machine Learning Inference

Supernova - Accelerating Machine Learning Inference

version 1.2

Project Supernova is to build a common machine learning inference service framework by enabling machine learning inference accelerators across edge endpoint devices, edge systems and cloud, with or without hardware accelerators.

Apr 20, 2022
fling logo of Horizon Peripherals Intelligence

Horizon Peripherals Intelligence

version 3.0

Horizon Peripherals Intelligence is an online self-serviced diagnosis service that can help increase the satisfaction when using peripheral devices with Horizon product by both the end users and the admin user. Currently, we support diagnosis for the following device categories – USB storage devices, USB printers, USB scanners, Cameras. We will continue to cover more device categories in the future.

May 17, 2022
fling logo of VMware OS Optimization Tool

VMware OS Optimization Tool

The VMware OS Optimization Tool helps optimize Windows desktops for use with VMware Horizon View.

View More