-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'pipeline' into release/develop
- Loading branch information
Showing
62 changed files
with
2,167 additions
and
155 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
6 changes: 3 additions & 3 deletions
6
.run/Doer kfeed - simple ingest.run.xml → .run/Doer pipeline grpc service.run.xml
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,16 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="Doer pipeline ingest" type="Application" factoryName="Application"> | ||
<option name="MAIN_CLASS_NAME" value="io.github.s7i.doer.Doer" /> | ||
<module name="doer.main" /> | ||
<option name="PROGRAM_PARAMETERS" value="./docs/pipeline/grpc-backend/ingest.yml" /> | ||
<extension name="coverage"> | ||
<pattern> | ||
<option name="PATTERN" value="io.github.s7i.doer.command.*" /> | ||
<option name="ENABLED" value="true" /> | ||
</pattern> | ||
</extension> | ||
<method v="2"> | ||
<option name="Make" enabled="true" /> | ||
</method> | ||
</configuration> | ||
</component> |
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,16 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="Doer pipeline sink" type="Application" factoryName="Application"> | ||
<option name="MAIN_CLASS_NAME" value="io.github.s7i.doer.Doer" /> | ||
<module name="doer.main" /> | ||
<option name="PROGRAM_PARAMETERS" value="./docs/pipeline/grpc-backend/console-sink.yml" /> | ||
<extension name="coverage"> | ||
<pattern> | ||
<option name="PATTERN" value="io.github.s7i.doer.command.*" /> | ||
<option name="ENABLED" value="true" /> | ||
</pattern> | ||
</extension> | ||
<method v="2"> | ||
<option name="Make" enabled="true" /> | ||
</method> | ||
</configuration> | ||
</component> |
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,16 @@ | ||
version: v1 | ||
kind: sink | ||
params: | ||
doer.pipeline.backend: grpc | ||
doer.pipeline.backend.target: localhost:6565 | ||
doer.pipeline.sink: true | ||
doer.pipeline.bind: from-ingest-to-sink | ||
doer.pipeline.id: id-sink1 | ||
mykaf: |+ | ||
bootstrap.servers=localhost:9092 | ||
client.id=doer.sink | ||
spec: | ||
- output: doer://console | ||
# enabled: false | ||
- output: kafka://mykaf/test-sink123 | ||
# enable: false |
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,11 @@ | ||
version: v1 | ||
kind: ingest | ||
param: | ||
doer.output: pipeline://grpc | ||
doer.pipeline.backend: grpc | ||
doer.pipeline.backend.target: localhost:6565 | ||
ingest: | ||
- record: record 1 ${date:yyyy-MM-dd}T${date:HH:mm:ss}+00:00 | ||
- record: record 2 ${date:yyyy-MM-dd}T${date:HH:mm:ss}+00:00 | ||
- record: record 3 ${date:yyyy-MM-dd}T${date:HH:mm:ss}+00:00 | ||
key: key-record 3 |
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,17 @@ | ||
### Running from the console | ||
|
||
1. Sink: | ||
|
||
```bash | ||
doer console-sink.yml | ||
|
||
``` | ||
|
||
2. Service: | ||
```bash | ||
doer pipeline | ||
``` | ||
3. Records ingest | ||
```bash | ||
doer ingest.yml | ||
``` |
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,61 @@ | ||
#!/bin/bash | ||
|
||
PROTO_SET=../../proto-doer/build/descriptors/main.desc | ||
set -e | ||
|
||
doer misc pipeline record --help | ||
|
||
print_color() { | ||
local TEXT=$1 | ||
local CLR_NAME=$2 | ||
local RED="\e[31m" | ||
local GREEN="\e[32m" | ||
local ENDCOLOR="\e[0m" | ||
local COLOR=${!CLR_NAME} | ||
echo -e "${COLOR}${TEXT}${ENDCOLOR}" | ||
} | ||
|
||
green() { | ||
print_color $1 "GREEN" | ||
} | ||
|
||
make_record() { | ||
doer misc pipeline record \ | ||
--meta test.data=true \ | ||
--key my-key \ | ||
--data "some test data" | ||
} | ||
|
||
make_record_pl() { | ||
doer misc pipeline record \ | ||
--meta test.data=true \ | ||
--key my-key \ | ||
--data "some test data" \ | ||
--pipeline-load | ||
} | ||
|
||
green "[HEX:record]" | ||
make_record | xxd | ||
|
||
# https://github.com/protocolbuffers/protoscope | ||
green "[protoscope]" | ||
make_record | protoscope | ||
|
||
green "[protoscope:print-field-names]" | ||
|
||
make_record | protoscope \ | ||
-descriptor-set ${PROTO_SET} \ | ||
-message-type io.github.s7i.doer.proto.Record \ | ||
-print-field-names | ||
|
||
green "[HEX:pipeline-load]" | ||
make_record_pl | xxd | ||
|
||
green "[protoscope:pipeline-load]" | ||
make_record_pl | protoscope | ||
|
||
green "[protoscope:pipeline-load:print-field-names]" | ||
make_record_pl | protoscope \ | ||
-descriptor-set ${PROTO_SET} \ | ||
-message-type io.github.s7i.doer.pipeline.proto.PipelineLoad \ | ||
-print-field-names |
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,39 @@ | ||
# Pipelines | ||
|
||
Sample of pipeline specification: | ||
|
||
```yaml | ||
# Pipeline manifest draft | ||
version: v1 | ||
kind: pipeline | ||
params: | ||
doer.pipeline.backend: kafka | ||
doer.pipeline.backend.kafka.properties: |+ | ||
bootstrap.servers=kafka:9093 | ||
spec: | ||
- pipeline: a | b | ||
- name: a | ||
description: "a" as instance of source | ||
manifest-file: source.yml | ||
- name: b | ||
description: "b" as instance of sink | ||
manifest-file: sink.yml | ||
--- | ||
|
||
version: v2 | ||
kind: pipeline | ||
params: | ||
doer.pipeline.backend: kafka | ||
doer.pipeline.backend.kafka.properties: |+ | ||
bootstrap.servers=kafka:9093 | ||
spec: | ||
pipeline: | ||
- flow: a | b | ||
elements: | ||
- name: a | ||
description: "a" as instance of source | ||
manifest-file: source.yml | ||
- name: b | ||
description: "b" as instance of sink | ||
manifest-file: sink.yml | ||
``` |
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 was deleted.
Oops, something went wrong.
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
Oops, something went wrong.