-
Notifications
You must be signed in to change notification settings - Fork 9
Run DPS samples in Bluemix
brandtol edited this page May 23, 2017
·
2 revisions
Prerequisites
- You have created a Streaming analytics service in Bluemix and can deploy SAB files to the service https://console.ng.bluemix.net/catalog/services/streaming-analytics?env_id=ibm:yp:us-south&taxonomyNavigation=app-services
- You have created a Compose Redis service in Bluemix and can connect to this service via the reds-cli tool (see point 6 below) https://console.ng.bluemix.net/catalog/services/compose-for-redis?env_id=ibm:yp:us-south&taxonomyNavigation=storage
Procedure
- 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
- 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
- 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
- Compile the sample
make all
- 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
- 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"