Skip to content

Run DPS samples in Bluemix

brandtol edited this page May 23, 2017 · 2 revisions

Prerequisites

Procedure

  1. Download or clone the toolkit (use the develop branch to get the latest version), compile the toolkit and set the DPS_TOOLKIT_HOME variable to the toolkit directory
  git clone https://github.com/IBMStreams/streamsx.dps.git
  cd streamsx.dpx
  export DPS_TOOLKIT_HOME=`pwd`/com.ibm.streamsx.dps
  make all
  1. Copy the DPSUsageFromCpp sample to a temporary directory and set the DPS_TOOLKIT_HOME variable to the toolkit
   cd samples
   cp -r DPSUsageFromCpp /tmp
   cd /tmp/DPSUsageFromCpp
  1. Adapt the no-sql-kv-store-servers.cfg file in the samples etc directory to reflect the location of your Compose Redis service and the redis password. First field is the hostname, second is the port, and the last field is the password. You find this information in your Compose Redis service page, go to "Service Credentials" and click the "View Credentials" button.
   redis
   bluemix-sandbox-dal-9-portal.7.dblayer.com:26176:secretpassword
  1. Compile the sample
   make all
  1. Open the admin console of the Streaming analytics service and submit the SAB file found in the output directory of the sample :
   output/Main/Distributed/com.ibm.streamsx.dps.demo.Main.sab
  1. To see the output of the sample, open the logviewer in the console and load the comsole logs, and/or connect with the redis client and check for keys. You should at least see the dps_and_dl_guid key.
   redis-cli -h bluemix-sandbox-dal-9-portal.7.dblayer.com -p 26176 -a secretpassword
   bluemix-sandbox-dal-9-portal.7.dblayer.com:26176> keys *
   1) "dps_and_dl_guid"
Clone this wiki locally