Usage Note 54996: The SAS® Event Stream Processing Engine (ESP) Stream Viewer is unable to connect to the ESP publish/subscribe HTTP provider
The SAS Event Stream Processing Engine (ESP) Stream Viewer is unable to connect to the event stream processing publish/subscribe HTTP provider. The ESP Stream Viewer shows the host name with strikeout and with red text:
This can occur if there is no listener on the port that is specified in the URL or if the event stream processing engine is not listening for HTTP publish/subscribe requests on the port. If the port selected is the publish/subscribe port, the ESP engine issues an error message:
2015-01-14T15:33:48,350; ERROR; 00000011; DF.ESP; (dfESPpubsubServer.cpp:381); dfESPpubsubServer::handle_read_magic_number(): Magic number mismatch: 0x4F505449
To successfully connect, the HTTP publish/subscribe port of the ESP engine must be specified as the URL for the ESP Stream Viewer. The HTTP publish/subscribe port can be configured with:
- The -http-pubsub port option when starting the dfesp_xml_server.
- The -h [pubsub http port] on the dfESPengine::initialize() for a C++ application.
- The <http-pubsub-server port='[http pubsub port]'/> element of the <http-servers> element of the XML model.
Once successfully connected to the HTTP publish/subscribe port, the ESP Stream Viewer shows the models that are defined to the engine. For example, if the XML modeling server is started as:
$DFESP_HOME/bin/dfesp_xml_server -http-admin 61003 -http-pubsub 61002 -pubsub 55555 -model file://$DFESP_HOME/src/trades_xml/trades.xml
the URL for the ESP Stream Viewer Server is http://localhost:61002 and the ESP Stream Viewer successfully connects:
Operating System and Release Information
| SAS System | SAS Event Stream Processing Engine | Microsoft® Windows® for x64 | 2.3 | | | |
| Linux for x64 | 2.3 | | | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Users of the SAS
® ESP Stream Viewer are unable to connect to the ESP publish/subscribe HTTP provider. The host name is displayed in strikeout and red text. The ESP engine might issue error message dfESPpubsubServer::handle_read_magic_number(): Magic number mismatch
| Date Modified: | 2015-06-29 10:38:22 |
| Date Created: | 2015-01-14 15:43:29 |