Sunday 9 July 2017

SAP Hana 2.0 SP1 – Smart Data Streaming & DT Combined with Raspberry Pi Part-2

Continued SAP Hana 2.0 SP1 – Smart Data Streaming & DT Combined with Raspberry Pi Part-1

Install Smart Data Streaming and add the service to the tenant


Smart Data Streaming installation for my scenario consist of several package software to downloads such as:

Note: I will not cover the SDS Studio installation portion but it’s already installed on my side

SAP Hana 2.0, Smart Data Streaming, SAP HANA Certifications

SAP Hana 2.0, Smart Data Streaming, SAP HANA Certifications

SAP Hana 2.0, Smart Data Streaming, SAP HANA Certifications

Once all downloaded, I start to run the installation of the server part from the cockpit

Note: You need to specify the Hana client source install folder if it’s not already installed

SAP Hana 2.0, Smart Data Streaming, SAP HANA Certifications

Continue and add the new role to the dedicated host

SAP Hana 2.0, Smart Data Streaming, SAP HANA Certifications

Review the configuration and update the system

SAP Hana 2.0, Smart Data Streaming, SAP HANA Certifications

The installation is completed successfully

SAP Hana 2.0, Smart Data Streaming, SAP HANA Certifications

My Streaming service is ready; I will then add it to my tenant database. I run the following statement

SAP Hana 2.0, Smart Data Streaming, SAP HANA Certifications

And we can see my Streaming link from the Tenant cockpit now

SAP Hana 2.0, Smart Data Streaming, SAP HANA Certifications

Now I need to initialize it since it not done yet.

SAP Hana 2.0, Smart Data Streaming, SAP HANA Certifications

To initialize my tenant i run the statement below from the console on the tenant database

SAP Hana 2.0, Smart Data Streaming, SAP HANA Certifications

And I can see now that streamingserver service appear as “master”

SAP Hana 2.0, Smart Data Streaming, SAP HANA Certifications

To make further validation, at OS layer 2 new folder should have been created “cluster” and “hb1”, which is what I can see

SAP Hana 2.0, Smart Data Streaming, SAP HANA Certifications

Smart Data Streaming based installation is now completed; from a summary perspective, all the server portion are completed such as:
  • Dynamic Tiering
  • Hana Cockpit
  • And Smart Data Streaming
From a VMware point of view here is the consumption on memory and cpu side per vms

SAP Hana 2.0, Smart Data Streaming, SAP HANA Certifications

I will now proceed with the Streaming Lite Specialized Component setup

Configure Raspberry PI with Streaming Lite Specialized Component


Streaming lite is a to-the-edge component designed to deploy streaming projects on remote gateway devices such as Raspberry PI.

For my configuration, I’m using a Raspberry PI 3 Model B in conjunction with GrovePI+, I will use 3 type of sensors from Seeed to capture data:
Air Quality Sensor v1.3 – SKU 101020078
Temp&Humi Sensor – SKU 101020011
Gas Sensor(MQ3) – SKU 101020006

Reference and website can be found from the link at the beginning of my document at “Link used”

SAP Hana 2.0, Smart Data Streaming, SAP HANA Certifications

In term of component deployment point of view, Streaming Lite will be install on my Raspberry PI and will streams output via WebSocket to Smart Data Streaming

SAP Hana 2.0, Smart Data Streaming, SAP HANA Certifications

This portion of setup will consist of:
  1. Deploy Streaming Lite component on my Raspberry PI
  2. Check Smart Data Streaming Web service enablement
  3. Build Smart Data Streaming project
  4. Build Streaming Lite project
  5. Retrieve sensor data and load them into Streaming Lite project
  6. Check live data streamed and received in Hana

Deploy Streaming Lite component on my Raspberry PI


The Streaming Lite component is a tar package that need to be decompress at the location of your choice, once done the “install” will be there.

SAP Hana 2.0, Smart Data Streaming, SAP HANA Certifications

To run Streaming Lite script i must set the variable environment “STEAMING_HOME” accordingly. I will do it in root user .bashrc

SAP Hana 2.0, Smart Data Streaming, SAP HANA Certifications

And I run I quick check on startup project, it’s good

SAP Hana 2.0, Smart Data Streaming, SAP HANA Certifications

Check Smart Data Streaming Web service as enablement


Now done, from the cockpit I will make sure the Web Service is enable for Smart Data Streaming

SAP Hana 2.0, Smart Data Streaming, SAP HANA Certifications

Note also the port used because it will be use later for the web output adapter

SAP Hana 2.0, Smart Data Streaming, SAP HANA Certifications

Now checked I can start to build my project in Hana studio for Smart Data Streaming
Note: Make sure to install the plug-in as “Administrator” for windows client machine

No comments:

Post a Comment