summaryrefslogtreecommitdiff
path: root/docs/develop-guide.md
diff options
context:
space:
mode:
authordoufenghu <[email protected]>2023-11-24 20:23:31 +0800
committerdoufenghu <[email protected]>2023-11-24 20:23:31 +0800
commitee49aa68674e35c925ed2eaab82a5953703e0244 (patch)
tree4ee5f270c6b96bbe3c400a363898c89fdd43c376 /docs/develop-guide.md
parent3603443e4e841b96f59483d71055732b672216be (diff)
[fix][bootstrap] 修复一些命名问题
Diffstat (limited to 'docs/develop-guide.md')
-rw-r--r--docs/develop-guide.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/docs/develop-guide.md b/docs/develop-guide.md
index 97d3bdd..6316e09 100644
--- a/docs/develop-guide.md
+++ b/docs/develop-guide.md
@@ -31,5 +31,24 @@ When throwing an exception with a hint message and ensure that the exception has
3. Add VM options `-e client --target local -c /...../groot-stream/config/groot-stream-job.yaml`.
4. Click the `Run` button.
+## How to run a job in command line
+- Standalone Mode
+```shell
+cd "groot-stream-${version}"
+./bin/start.sh -c ./config/groot-stream-job.yaml --target remote -d -n groot-stream-job
+```
+- Yarn Mode
+```shell
+cd "groot-stream-${version}"
+./bin/start.sh -c ./config/groot-stream-job.yaml --target yarn-per-job -d -n groot-stream-job
+```
+
+
+## Run a job example
+All examples are in module `groot-stream-example`. You can run the example [ running or debugging a job in IDEA].
+e.g. we use `groot-stream-example/src/main/java/com/geedgenetworks/example/Bootsrap.java` as the example, when you produce some sample data in kafka and you could see the output as below .
+```json
+{"ip_string":"8.8.8.9","fqdn_string":"www.geedgenetworks.com","port_int32":80}
+```