Skip to Content

Generate sensor data in SAP Data Hub, developer edition 1.4

test
0 %
Generate sensor data in SAP Data Hub, developer edition 1.4
Details
// Explore More Tutorials

Generate sensor data in SAP Data Hub, developer edition 1.4

Generate sensor data and display it in a terminal by using SAP Data Hub, developer edition 1.4.

You will learn

During this tutorial, you will learn how to use a Data Generator to generate random sample data and how to visualize the generated data via a Terminal

Details

This tutorial is obsolete and will be removed shortly (end of-November 2018).


Step 1: Create a data pipeline

Open the modelling environment for building pipelines via http://localhost:8090 (SAP Data Hub Pipeline Modeler).

Press the Create Graph (1) button to create a new pipeline. The pipeline opens in the editor (2).

picture_01

Press the Save (1) button. Then enter a Name (test.myFirstPipeline) and Description (My first pipeline) in the pop-up window (2).

picture_02
Step 2: Add and configure Data Generator

Open the Operators (1) tab in the Navigation on the left. Then search for Data Generator (2).

picture_03

Add the Data Generator (3) operator to the pipeline by drag & drop.

picture_04

Attention: The SAP Data Hub, developer edition comes with a pipeline as well as with an operator called Data Generator. If you miss to open the Operators tab, you might end up opening the pipeline called Data Generator instead of adding the operator.

Press the Script (4) button to display the JavaScript snippet which is executed by the Data Generator. The JavaScript snippet opens in a new tab of the editor.

You see that the Data Generator creates a new random sample record every 500 milliseconds and sends it via the output port of the operator.

The sample data represents sensors for humidity, temperature etc.

picture_05

Close the tab for the JavaScript snippet.

Step 3: Add and configure Terminal

Add a Terminal operator to the pipeline by drag & drop (you find this also in the Operators tab). Then connect the output port of the Data Generator operator to the in1 port of the Terminal operator. You need to place the connection exactly on the “green circle”.

picture_06

Afterwards press the Save (1) button.

Step 4: Execute the data pipeline

Press the Run (1) button to execute the pipeline.

picture_07

When the Status (2) tab indicates that the pipeline is running, use the context menu Open UI of the Terminal (3) operator to see the generated sensor data.

picture_08

Stop the pipeline by pressing the Stop button (you find it next to the Run button).


Next Steps

Prerequisites

  • You have successfully installed SAP Data Hub, developer edition.
Back to top