Professional Documents
Culture Documents
Lecture 18 (Aws Kinesis Configuration)
Lecture 18 (Aws Kinesis Configuration)
2. Download the access key and .pem file if you don't have.
Once EC2 is up using sudo access - install Kinesis agent on the machine
Writing to Amazon Kinesis Data Streams Using Kinesis Agent - Amazon Kinesis Data Streams
or
3 vim /etc/aws-kinesis/agent.json
"cloudwatch.emitMetrics": true,
"kinesis.endpoint": "kinesis.us-east-1.amazonaws.com",
"firehose.endpoint": "firehose.us-east-1.amazonaws.com",
"awsAccessKeyId": "AKIA5QYYHX2KNYAL2UOO",
"awsSecretAccessKey": "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",
"flows": [
"filePattern": "/tmp/*.log",
"kinesisStream": "kds-demo",
"partitionKeyOption": "RANDOM"
4 vim /etc/sysconfig/aws-kinesis-agent
# Set AWS credentials for accessing Amazon Kinesis Stream and Amazon Kinesis Firehose
# AWS_ACCESS_KEY_ID="AKIA5QYYHX2KNYAL2UOO"
# AWS_SECRET_ACCESS_KEY="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"
# AWS_DEFAULT_REGION="us-east-1"
# AGENT_ARGS=""
# AGENT_LOG_LEVEL="INFO"
10 exit
STEP2:--NOW CREATE KINESIS STREAM:--
STEP 3:--NOW CREATE KINESIS DELIVERY STREAM:--
2 ls -lrt
3 vi temp.log
4 head /var/log/messages
6 vi temp1.log
7 cd /tmp
8 ls -lrt
9 cd
10 ls
11 cp temp1.log /tmp/temp1.log
12 cp temp1.log /tmp/temp2.log
13 cp temp1.log /tmp/temp3.log
14 cp temp1.log /tmp/temp4.log
15 cp temp1.log /tmp/temp5.log
17 history