The playback tool in the Streaming Run/Test perspective of (of HANA Studio with streaming plugin installed, or in ESP Studio) is a really useful tool for testing (and of course I use it for demo's). It reads input data from a file and can do it at a controlled rate where you can set the rate. This lets it simulate one or more live sources (see this blog for a discussion of simulation options).
There are two ways to use the playback tool:
The playback tool is - by default - one of the tabs in the lower left pane of the Run/Test perspective, and when you go to choose the file to playback, you'll see a button to choose which file type (.rec is the type for files created by using the playback tool to record a live source).
I normally use the .csv file, since it's easy to create this file with Excel (just remember to save it in csv formal and not xls). The important thing is to get the format right:
So here's an example of two rows for my input file, along with the ccl for the input stream it will feed. Note that the second row contains null values in the second to the last column:
MACHINEDATA,i,2DDDBW3TP,2014-06-03T12:00:00.000,TEMP,InsideTemp,45
MACHINEDATA,i,EKM49RTXK,2014-06-03T12:00:01.000,DOOR,,Door Close
CREATE INPUT STREAM MACHINEDATA
SCHEMA (
MACHINEID string ,
EVENT_TIME timestamp ,
EVENT_NAME string ,
EVENT_DESCRIPTION string ,
EVENT_VALUE string ) ;
So to use the Playback tool, first create (or record) your data file
Then, in HANA Studio (or ESP Studio), go to the Streaming Run Test Perpective and find the Playback-Record tool (by default in the lower left pane)
Now:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
13 | |
10 | |
10 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 |