Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit afe6cd2

Browse files
authored
Merge pull request #225 from aws-samples/data-processing-updates
Data processing updates
2 parents 19a3771 + 3ccfe71 commit afe6cd2

14 files changed

+65
-25
lines changed

DataProcessing/guide/content/data-lake.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ must be globally unique. We recommend using a name such as
3333

3434
![](images/data-lake-create-bucket.png)</kbd>
3535

36-
1. Click **Next** twice, and then click **Create bucket**.
36+
1. Click **Next** three times, and then click **Create bucket**.
3737

3838
#### 2. Create an Amazon Kinesis Data Firehose delivery stream
3939

@@ -140,8 +140,13 @@ text editor to see the contents.
140140

141141
![](images/data-lake-object-list.png)
142142

143-
1. Click on one of the files and click **Download**. Open the file with a text
144-
editor and explore its contents.
143+
1. Click on one of the files.
144+
145+
1. Click the **Select from** tab, select ``JSON`` from **File format**, and click
146+
the **Show file preview** to preview the file content.
147+
148+
![](images/data-lake-object-preview.png)
149+
145150

146151
#### 5. Query the data files
147152

DataProcessing/guide/content/stream-processing.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ environment variable with the key `TABLE_NAME` and the value
129129

130130
1. Click **Create a function**.
131131

132-
1. Enter `WildRydesStreamProcessor` in the **Name** field.
132+
1. Enter `WildRydesStreamProcessor` in the **Function name** field.
133+
134+
1. Select **Node.js 10.x** from **Runtime**.
133135

134136
1. Select **WildRydesStreamProcessorRole** from the **Existing role** dropdown.
135137

@@ -139,8 +141,6 @@ environment variable with the key `TABLE_NAME` and the value
139141

140142
1. Scroll down to the **Function code** section.
141143

142-
1. Select **Node.js 6.10** from **Runtime**.
143-
144144
1. Copy and paste the JavaScript code below into the code editor.
145145

146146
```javascript

DataProcessing/guide/content/streaming-data.md

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ the stream.
8181
1. In the Amazon Kinesis Streams console, click on **wildrydes** and click on
8282
the **Monitoring** tab.
8383

84-
1. After several minutes, you will see the **Put Record (success count)** graph
84+
1. After several minutes, you will see the **Put Record Success (percent) - Average** graph
8585
begin to record a single put a second.
8686

8787
#### 3. Read messages from the stream
@@ -177,13 +177,33 @@ the stream to plot the unicorns on the map.
177177

178178
1. Tick the **Read** and **List** permissions checkboxes.
179179

180-
1. Click **Resources** to limit the role to the **wildrydes** stream.
180+
1. Click **Resources** to limit the role to the **wildrydes** stream and consumer.
181+
182+
1. Click **Add ARN** next to **consumer**.
183+
184+
1. In the **Add ARN(s)** dialog box, enter the following information:
185+
186+
* the region you're using in **Region** (e.g. us-east-1)
187+
* your [Account ID][find-account-id] in **Account**
188+
* `*` in **Stream type**
189+
* `wildrydes` in **Stream name**
190+
* `*` in **Consumer name**
191+
* `*` in **Consumer creation timestamp**
192+
193+
<br/>
194+
![](images/streaming-data-consumer-arn.png)
195+
196+
1. Click **Add**.
181197

182198
1. Click **Add ARN** next to **stream**.
183199

184-
1. Enter the region you're using in **Region** (e.g. us-east-1), your [Account
185-
ID][find-account-id] in **Account**, and `wildrydes` in **Stream name**.
200+
1. In the **Add ARN(s)** dialog box, enter the following information:
201+
202+
* the region you're using in **Region** (e.g. us-east-1)
203+
* your [Account ID][find-account-id] in **Account**
204+
* `wildrydes` in **Stream name**
186205

206+
<br/>
187207
![](images/streaming-data-stream-arn.png)
188208

189209
1. Click **Add**.

DataProcessing/guide/site/cleanup.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ <h4 id="amazon-dynamodb">Amazon DynamoDB</h4>
6262
<p><strong><em>UnicornSensorData</em> table</strong></p>
6363
<ol type="1">
6464
<li><p>Click on <strong>Services</strong> then select <strong>DynamoDB</strong> in the Database section.</p></li>
65-
<li><p>Click <strong>Tables</strong> from the left-hand navigation</p></li>
65+
<li><p>Click <strong>Tables</strong> from the left-hand navigation.</p></li>
6666
<li><p>Click the radio button next to <strong>UnicornSensorData</strong>.</p></li>
6767
<li><p>Click <strong>Delete table</strong> and click <strong>Delete</strong> to confirm the deletion.</p></li>
6868
</ol>

DataProcessing/guide/site/dashboard.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ <h6 class='modal-title'>Configure Dashboard</h6>
2323
<label for='cognitoIdentityPoolId'>Cognito Identity Pool ID</label>
2424
<input autocomplete='off' class='form-control' id='cognitoIdentityPoolId' spellcheck='false' type='text'>
2525
</div>
26-
<div class='form-group'>
27-
<label for='kinesisStreamName'>Kinesis Data Stream Name</label>
28-
<input autocomplete='off' class='form-control' id='kinesisStreamName' spellcheck='false' type='text' value='wildrydes'>
29-
</div>
3026
</div>
3127
<div class='modal-footer'>
3228
<button class='btn btn-primary' id='start'>Start</button>

DataProcessing/guide/site/data-lake.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ <h4 id="create-an-amazon-athena-table">3. Create an Amazon Athena table</h4>
8888
<button class="btn btn-outline-primary copy">
8989
Copy to Clipboard
9090
</button></li>
91-
<li><p>Click <strong>Run Query</strong>. You might have to run the query twice.</p></li>
91+
<li><p>Click <strong>Run Query</strong>.</p></li>
9292
<li><p>Verify the table <strong>wildrydes</strong> was created by ensuring it has been added to the list of tables in the left navigation.</p></li>
9393
</ol>
9494
<h4 id="explore-the-batched-data-files">4. Explore the batched data files</h4>
@@ -99,7 +99,9 @@ <h4 id="explore-the-batched-data-files">4. Explore the batched data files</h4>
9999
<li><p>Enter the bucket name you create in the first section in the <strong>Search for buckets</strong> text input.</p></li>
100100
<li><p>Click on the bucket name and navigate through the year, month, day, and hour folders to ensure that files are being populated in your bucket.</p>
101101
<p><img src="images/data-lake-object-list.png" /></p></li>
102-
<li><p>Click on one of the files and click <strong>Download</strong>. Open the file with a text editor and explore its contents.</p></li>
102+
<li><p>Click on one of the files.</p></li>
103+
<li><p>Click the <strong>Select from</strong> tab, select <code>JSON</code> from <strong>File format</strong>, and click the <strong>Show file preview</strong> to preview the file content.</p>
104+
<p><img src="images/data-lake-object-preview.png" /></p></li>
103105
</ol>
104106
<h4 id="query-the-data-files">5. Query the data files</h4>
105107
<p>Query the Amazon Athena table to see all records that have been delivered via Kinesis Data Firehose to S3.</p>
120 KB
Loading
51.2 KB
Loading
130 KB
Loading
-56.2 KB
Loading

0 commit comments

Comments
 (0)