I am trying to create via SQL a remote source for the Twitter adapter running in a Data Provisioning Agent on a separate host.
Since the SQL reference unfortunately has very little on this topic, I activated the SQL trace and created it manually. This yielded the following:
CREATE REMOTE SOURCE "Twitter Feed" ADAPTER "TwitterAdapter" AT LOCATION AGENT "TwitterAgent" CONFIGURATION '<?xml version="1.0" encoding="UTF-8"?><ConnectionProperties name="configuration"></ConnectionProperties>' WITH CREDENTIAL TYPE 'PASSWORD' USING *************************************************************************************************************************
Sadly, I need exactly what was escaped with all the asterisk characters
I subsequently deleted the remote source and tried the following statement - based on the syntax of the only example in the documentation (which, granted, sets up a remote source for a hadoop adapter):
CREATE REMOTE SOURCE "Twitter Feed" ADAPTER "TwitterAdapter" AT LOCATION AGENT "TwitterAgent" CONFIGURATION '<?xml version="1.0" encoding="UTF-8"?><ConnectionProperties name="configuration"></ConnectionProperties>' WITH CREDENTIAL TYPE 'PASSWORD' USING 'consumerKey="myConsumerKey";consumerSecret="myLongConsumerSecret";oauthToken="myEvenLongerOAuthToken";oauthSecret="myOAuthSecret"'
The remote source was visible in the Studio, but the 4 credential fileds were empty and testing the connection yielded
SAP DBTech JDBC: [403]: internal error: Cannot get remote source objects: Missing or invalid value for consumerKey
I'd appreciate it very much if somebody could share the correct syntax.
Thanks, Harald