Configuring SAS® ESP Streamviewer

Configuring SAS® ESP Streamviewer

August 27, 2024
Streamviewer4-1024x546
Introduction:
In our previous blog, we have already discussed the real life uses of SAS® Event Stream Processing Studio and connectivity between SAS® ESP Studio and OPC UA Server.
Now in this blog we discuss the Configuration of SAS® ESP Streamviewer. Keep reading to learn more about SAS® ESP Studio and Streamviewer.
What is SAS® ESP Streamviewer?
Streamviewer provides a user interface that enables us to subscribe to window event streams from one or more event stream processing engines and to display the events that stream through it. We can display each event as a row in a table or as an element of a graph. Each table row is keyed by the schema key of the corresponding window. We can save and load a collection of tables and graphs and their customized settings in dashboards.
Streamviewer dashboards are stored in a configuration database. For the configuration database storage mechanism, we can use one of several supported enterprise databases or the stand-alone, file-based H2 database that is provided with SAS® Event Stream Processing. After we have configured our storage mechanism, we can run the Streamviewer user interface.
Setting Up SAS® ESP Streamviewer:
Following are the steps for implementation –
We will be configuring the Streamviewer in Linux Environment and with default H2 database.
Step 1: Setting up the Environment Variables
Set the environment variables “DFESP_HOME” and “LD_LIBRARY_PATH”.If the variables are already set then move to the next step otherwise set the variables as follows on Linux Command Line:
export DFESP_HOME=/opt/sas/viya/home/SASEventStreamProcessingEngine/5.1.0
export LD_LIBRARY_PATH=$DFESP_HOME/lib:/opt/sas/viya/home /SASFoundation/sasexe
Figure 1: Setting up the environment variables
Step 2: Moving the Streamviewer JAR package
Streamviewer is packaged in the streamviewer-4.3.jar file, which is located in the /lib directory of your ESP installation ($DFESP_HOME/lib). SAS recommends that you run the JAR file from another location.
We need to include the following script which is used to start Streamviewer:
$DFESP_HOME/bin/streamviewer.sh
So to move the JAR package and above mention script:
Note:Streamviewer requires a Java Virtual Machine (JVM) of 1.7 or later.
Step 3: Executing command to run the Streamviewer

To run the Streamviewer we need run the command on Linux terminal.

Figure 2: Executing the command to run the Stremviewer
We can use following additional arguments, depending on the we are using:
Figure 3: Additional Arguments for Streamviewer
Step 4: Accessing the Streamviewer URL
After Streamviewer is successfully started,
Figure 4: Loading ESP Streamviewer
Figure 5: ESP Streamviewer Main Screen
Figure 6: ESP Model Viewer Page
References:

Written by,
Tushar Sonawane
Sr. SAS Consultant
Nupeak IT solutions LLP

  • Jamie Milson

    A construction industry has surged ahead by harnessing innovative and creative solutions tailored to meet contemporary market demands.

  • Jamie Milson

    A construction industry has surged ahead by harnessing innovative and creative solutions tailored to meet contemporary market demands.

Leave A Comment To Jamie Milson Cancel Comment

Cart (0 items)

Create your account