-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add instruction for setting up and running command
- Loading branch information
Showing
7 changed files
with
199 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
|
||
|
||
# Helsinki Demo | ||
|
||
This demo requires development release of CDK and MQTT connector. | ||
|
||
## Connect to Fluvio | ||
|
||
Either set up local Fluvio cluster (https://www.fluvio.io) or connect to Infinyon cloud at https://infinyon.cloud/signup. | ||
|
||
Test by running this command: | ||
|
||
``` | ||
$ fluvio topic list | ||
< show topic list> | ||
``` | ||
|
||
## Download Connector Developer Kit (CDK) | ||
|
||
Download CDK by running this command: | ||
|
||
``` | ||
$ fluvio install --hub cdk | ||
``` | ||
|
||
|
||
# full transformation | ||
|
||
|
||
``` | ||
D create view transit as select * from fluvio_consume('helsinki --tail 10 --transforms-file=jolt.yaml | ||
-c lat:d="lat" -c long:d="long" -c vehicle:i="vehicle" -c route="route" -c speed:d="speed" | ||
-c time:t="tst" -c acc:d="acc" -c line:i="line" -c stop:i="stop" -c desi="desi" -c operator:i="oper" | ||
-c dl:i="dl" -c odo:i="odo" -c drst:i="drst" -c occu:i="occu" -c hdg:i="hdg" -c dir="dir" -c tsi:i="tsi" | ||
-c jrn:i="jrn" -c start="start"'); | ||
``` | ||
|
||
All data | ||
``` | ||
D create view transit as select * from fluvio_consume('helsinki -B --rows=1859058 --transforms-file=jolt.yaml | ||
-c lat:d="lat" -c long:d="long" -c vehicle:i="vehicle" -c route="route" -c speed:d="speed" | ||
-c time:t="tst" -c acc:d="acc" -c line:i="line" -c stop:i="stop" -c desi="desi" -c operator:i="oper" | ||
-c dl:i="dl" -c odo:i="odo" -c drst:i="drst" -c occu:i="occu" -c hdg:i="hdg" -c dir="dir" -c tsi:i="tsi" | ||
-c jrn:i="jrn" -c start="start"'); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
transforms: | ||
- uses: infinyon/[email protected] | ||
with: | ||
spec: | ||
- operation: shift | ||
spec: | ||
payload: | ||
VP: | ||
lat: "lat" | ||
long: "long" | ||
veh: "vehicle" | ||
route: "route" | ||
spd: "speed" | ||
tst: "tst" | ||
acc: "acc" | ||
line: "line" | ||
stop: "stop" | ||
desi: "desi" | ||
oper: "oper" | ||
dl: "dl" | ||
odo: "odo" | ||
drst: "drst" | ||
occu: "occu" | ||
hdg: "hdg" | ||
dir: "dir" | ||
tsi: "tsi" | ||
jrn: "jrn" | ||
start: "start" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters