Skip to content

Commit 2ea4855

Browse files
authored
stream-processing: getting-started: hands-on: add missing read_from_head (fluent#1261)
Signed-off-by: Ruben Laguna <[email protected]>
1 parent d253400 commit 2ea4855

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

stream-processing/getting-started/hands-on.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ $ docker run -ti -v `pwd`/sp-samples-1k.log:/sp-samples-1k.log \
7272
-i tail \
7373
-p path=/sp-samples-1k.log \
7474
-p parser=json \
75-
-p read_from_head=true \
75+
-p read_from_head=true \
7676
-T "SELECT word, num FROM STREAM:tail.0 WHERE country='Chile';" \
7777
-o null -f 1
7878
```
@@ -99,6 +99,7 @@ $ docker run -ti -v `pwd`/sp-samples-1k.log:/sp-samples-1k.log \
9999
-i tail \
100100
-p path=/sp-samples-1k.log \
101101
-p parser=json \
102+
-p read_from_head=true \
102103
-T "SELECT AVG(num) FROM STREAM:tail.0 WHERE country='Chile';" \
103104
-o null -f 1
104105
```
@@ -127,6 +128,7 @@ $ docker run -ti -v `pwd`/sp-samples-1k.log:/sp-samples-1k.log \
127128
-i tail \
128129
-p path=/sp-samples-1k.log \
129130
-p parser=json \
131+
-p read_from_head=true \
130132
-T "SELECT country, AVG(num) FROM STREAM:tail.0 \
131133
WINDOW TUMBLING (1 SECOND) \
132134
WHERE country='Chile' \

0 commit comments

Comments
 (0)