Skip to Content

Using the Streaming Playback tool to test a streaming project

Previous

Using the Streaming Playback tool to test a streaming project

By Jeff Wootton

Run a streaming project and stream some simulated data through it using the record/payback tool. View the output in the stream viewer.

You will learn

  • How to use the Playback tool to stream captured or simulated data from a file to test your project

Details


In this tutorial we will use the Playback tool to stream in simulated data from a file to test our project. You can also use the tool to record actual data as it arrives, producing a test file that you can later use.

Step 1: Run the Project

Go to SAP HANA Streaming Development perspective.

Click the drop down arrow next to the Run button and select the streaming server to run this project.

run the project

You will be switched into the SAP HANA Streaming Run-Test perspective if the project deploys successfully.

Please log in to access this content.
Step 2: Open viewers on the streams

Double-click on each of the streams in the Server view to open them in the Stream View.

open all tables
Please log in to access this content.
Step 3: Connect the playback tool to the project

Click the Playback tab.

playback

Click Select Project icon in the top right corner of the Playback window to connect the playback tool to the current project (if you had multiple projects running it would ask you to choose).

select project
Please log in to access this content.
Step 4: Select the file containing the simulated data to play back

Download the sample data file as follows: Right click on the following link and select Save link/target as… machinedata.csv

Click Select Playback File icon shown below to select the data file to use.

select playback file
  • In the Open dialogue window, change the file type to .csv.
  • Navigate to the location where you saved the sample data file that you just downloaded
  • Choose machinedata.csv then click Open.
open file
Please log in to access this content.
Step 5: Set the playback speed

Click rec/ms. You want to control the playback speed so that you can watch things happen at a reasonable pace. Once it’s running you can speed it up or slow it down using the slider tool. Enter 0.005 in the rec/ms box.

rec per sec
Please log in to access this content.
Step 6: Start the playback and view the results

Then click the Start Playback button with icon shown below.

play

Click each viewer tab to view the output from each stream/window.

switch tabs
Please log in to access this content.
Next
Back to top