Quantcast
Channel: SCN : Document List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 1183

SAP Hana EIM Connection Scenario Setup - part 3

$
0
0

Twitter adapter setup

 

In order to replicate and consume content into Hana from twitter, I need to create a “Twitter apps” from the developer space (https://dev.twitter.com)

25.jpg

 

From the documentation link click on “Manage my Apps”

26.jpg

 

It will lead you to the application management page and click on the “Create New App” button

27.jpg

 

Provide the necessary information, accept the license term and hit click on the “create your Twitter application” at the bottom of the page

28.jpg

 

The application now create, four information will be required in order to create the remote connection with Hana:

  • Consumer Key (API Key)
  • Consumer Secret (API Secret)
  • Access Token
  • Access Token Secret

 

From the created application page click on the “keys and Access Tokens”

29.jpg

 

From the page note the two keys for the consumer

30.jpg

 

And from the bottom of the page create the access token to generate them

31.jpg

 

32.jpg

 

Now completed I need to register my adapter and create my new connection in Hana

32.1.jpg

 

32.2.jpg

 

 

 

Real time table replication

 

All my remote source connection are now created I can proceed with table replication, for my test lab I have created the same table to replicate in all remote source database named “Store”

32.3.jpg

 

MS SQL


For MS SQL when you setup the database to use “Change Data Capture” to track change, you need to specify on which table you want the track to encore

39.jpg

 

From the Workbench editor create we need to create the replication task and uncheck “initial load”

21.png

 

 

ORACLE


I earlier ran the “oracle_init.sql” script with the default user LR_USER for the replication, I did create my “store” table which belong to this user for the replication

40.jpg

 

From the workbench repeat the procedure to create a replication task and uncheck “initial load”

41.jpg

 

For DB2, Teradata and ASE, from the workbench repeat the procedure to create a replication task and uncheck “initial load”

 

Once the replication is working you can check the task from the “DP Provisioning Task Monitor”

42.jpg

 

TWITTER

 

For Twitter replication when the remote connection is created two table should appear, the one I will use for my tweet replication is the “status” table

43.jpg

 

From the workbench I start to setup the live replication and check the replication task

44.jpg

 

45.jpg

 

From the studio, I can see the content of the table which contain all the tweets and news

46.jpg

 

Replicate information for the status table bring a lot of element, for my test I create a tweet on my tweeter page and see if this one appear in the tale

47.jpg

 

And I can see my tweet in the table

48.jpg

 

The next step now is to filter my content, I’ll create additional tweet and filter the replication on them only

49.jpg

 

In order to filter, from the workbench apply a filter on “ScreenName” column, basically the screen name value should be your account name.

50.jpg

 

And refresh my status table

51.jpg

 

My HomeLab replication is now completed.

 

Link to :

SAP Hana EIM  Connection Scenario Setup - Part 1

SAP Hana EIM  Connection Scenario Setup - Part 2


Viewing all articles
Browse latest Browse all 1183

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>