forked from vmware-archive/retail-demo-xd
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathxd_streams.txt
11 lines (6 loc) · 977 Bytes
/
xd_streams.txt
1
2
3
4
5
6
7
8
9
10
11
stream create --definition "http --port=8001 | transform --script=order-transformer-training.groovy | hdfs --rollover=51200 --suffix=txt" --name training_stream
stream create --definition "http --port=8000 | filter --expression=!payload.contains("BAD_DATA") | transform --script=order-transformer.groovy | hdfs --rollover=51200 --suffix=txt" --name order_stream
tap create --definition "tap order_stream.filter | regression-analytic --threshold=0.90 | jdbc --columns='customer_id,order_id,order_amount,store_id,num_items' --tablename='realtime_orders'" --name fraud_tap
tap create --definition "tap order_stream.filter | regression-analytic --threshold=0.90 | json-field-extractor --fieldName=orderAmount | richgauge --name=fraud_order_gauge" --name fraud_gauge_tap
tap create --definition "tap order_stream.filter | json-field-extractor --fieldName=orderAmount | richgauge --name=order_gauge" --name order_tap
job create --name batchAnalytic --definition "batch-analytic"