You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Switch to `Templates` folder deploy the cfn-eks-msk-aks.yml, the template creates the AWS resources.
43
43
Deploying the CFN does requires you to pass parameters for SSH key (pass the key pair that already exists in the aws account else need to create a new one)
44
44
and IP address range to access the Kafka client instance.
Run the following kubectl commands to create namespace, verify if namespace is created
92
92
```
93
-
$kubectl create namespace eks-msk-twitter
94
-
$kubectl get namespaces
93
+
kubectl create namespace eks-msk-twitter
94
+
kubectl get namespaces
95
95
```
96
96
97
97
Switch to `Templates` folder
98
98
```
99
-
$cd Templates
99
+
cd Templates
100
100
```
101
101
You need to replace value of bearer token in the _twitter-cfn-app-deployment.yaml_ template for twitter access, deploy the pods to eks-msk-twitter namespace
102
102
103
103
_<< Bearer Token >>_, Run the following commands to deploy the pods and verify the pod status
104
104
105
105
```
106
-
$kubectl apply -f twitter-cfn-app-deployment.yaml
107
-
$kubectl get pods -n=eks-msk-twitter -o wide
106
+
kubectl apply -f twitter-cfn-app-deployment.yaml
107
+
kubectl get pods -n=eks-msk-twitter -o wide
108
108
```
109
109
110
110
Now the application is deployed, and it starts reading sample stream data, parse tweet data and write it to the kafka topic, next step would be to create the msk connector to sink data from the kafka topic to Amazon keyspaces
@@ -116,7 +116,7 @@ Make changes to connector configuration in kafka-keyspaces-connector.json file
116
116
Replace the username and password to connect to Amazon Keyspaces in _kafka-keyspaces-connector.json_ file "auth.username": "< keyspaces-user-at > ", "auth.password": “< password >",
After deploy is completed the sink connector uses interface VPC endpoints to connect and write messages from the kafka topic to Amazon Keyspaces tables
122
122
Now the data pipeline is complete, you can use the cqlsh-expansion library which extends the existing cqlsh library with additional helpers, or the Amazon Keyspaces CQL console the read the data from Amazon Keyspaces tables
@@ -125,14 +125,14 @@ Use the following command to connect to Amazon Keyspaces using the cqlsh-expansi
125
125
126
126
To install and confgure the cqlsh-expansion utility
"topic.twitter_input.aws_blog.tweet_by_tweet_id.query":"INSERT INTO aws_blog.tweet_by_tweet_id(hashtag,tweet_id,tweet,lang,username,tweet_time) VALUES (:tag,:id,:text,:lang,:username,:timestamp) USING TTL 259200;",
"topic.twitter_input.aws_blog.tweet_by_user.query":"INSERT INTO aws_blog.tweet_by_user(hashtag,tweet_id,tweet,lang,username,tweet_time) VALUES (:tag,:id,:text,:lang,:username,:timestamp) USING TTL 259200;",
0 commit comments