From 32d782bef11fed619374a2d4175843adf13a57df Mon Sep 17 00:00:00 2001 From: "jiafeng.zhang" Date: Thu, 22 Jul 2021 16:59:08 +0800 Subject: [PATCH 1/2] Doris developers quickly use the development sample code framework, and the code is submitted one after another Doris developers quickly use the development sample code framework, and the code is submitted one after another --- samples/doris-demo/README.md | 23 ++++++++++ samples/doris-demo/flink-demo/pom.xml | 49 +++++++++++++++++++++ samples/doris-demo/pom.xml | 44 ++++++++++++++++++ samples/doris-demo/spark-demo/pom.xml | 37 ++++++++++++++++ samples/doris-demo/spring-jdbc-demo/pom.xml | 47 ++++++++++++++++++++ samples/doris-demo/stream-load-demo/pom.xml | 49 +++++++++++++++++++++ 6 files changed, 249 insertions(+) create mode 100644 samples/doris-demo/README.md create mode 100644 samples/doris-demo/flink-demo/pom.xml create mode 100644 samples/doris-demo/pom.xml create mode 100644 samples/doris-demo/spark-demo/pom.xml create mode 100644 samples/doris-demo/spring-jdbc-demo/pom.xml create mode 100644 samples/doris-demo/stream-load-demo/pom.xml diff --git a/samples/doris-demo/README.md b/samples/doris-demo/README.md new file mode 100644 index 00000000000000..d4277998dcb0a1 --- /dev/null +++ b/samples/doris-demo/README.md @@ -0,0 +1,23 @@ + + +In order to help developers quickly use and master Doris, this project provides a large number of code examples of Doris related scenarios. + +# flink-demo + +Mainly to provide sample codes for the integration of doris and flink, and examples of the use of Flink-doris-connector + +# spark-demo + +Mainly to provide sample codes for the integration of doris and spark, and examples of the use of Spark-doris-connector + +# stream-load-demo + +Provide usage examples of Doris stream load, including file and memory data import, using Java Http client method + +# spring-jdbc-demo + +Provides the use of Spring to integrate Doris, and provides external data access interfaces + +# docs + +Instructions for each example diff --git a/samples/doris-demo/flink-demo/pom.xml b/samples/doris-demo/flink-demo/pom.xml new file mode 100644 index 00000000000000..74e1a829e04aea --- /dev/null +++ b/samples/doris-demo/flink-demo/pom.xml @@ -0,0 +1,49 @@ + + + + 4.0.0 + + org.example + flink-demo + 1.0-SNAPSHOT + + flink-demo + + http://www.example.com + + + 2.11.12 + 2.11 + 1.8 + 1.11.0 + compile + + + + + junit + junit + 4.11 + test + + + + diff --git a/samples/doris-demo/pom.xml b/samples/doris-demo/pom.xml new file mode 100644 index 00000000000000..5c6501e85d4234 --- /dev/null +++ b/samples/doris-demo/pom.xml @@ -0,0 +1,44 @@ + + + + 4.0.0 + + org.apache + doris-demo + pom + 1.0-SNAPSHOT + + flink-demo + spark-demo + stream-load-demo + spring-jdbc-demo + + + doris-demo + http://www.example.com + + + UTF-8 + 1.8 + 1.8 + + + diff --git a/samples/doris-demo/spark-demo/pom.xml b/samples/doris-demo/spark-demo/pom.xml new file mode 100644 index 00000000000000..6190b1292d5c9e --- /dev/null +++ b/samples/doris-demo/spark-demo/pom.xml @@ -0,0 +1,37 @@ + + + + + doris-demo + org.apache + 1.0-SNAPSHOT + + 4.0.0 + + spark-demo + + + 8 + 8 + + + diff --git a/samples/doris-demo/spring-jdbc-demo/pom.xml b/samples/doris-demo/spring-jdbc-demo/pom.xml new file mode 100644 index 00000000000000..2622a807338f05 --- /dev/null +++ b/samples/doris-demo/spring-jdbc-demo/pom.xml @@ -0,0 +1,47 @@ + + + + 4.0.0 + + org.apache + spring-jdbc-demo + 1.0-SNAPSHOT + + spring-jdbc-demo + + http://www.example.com + + + 8 + 8 + + + + + junit + junit + 4.11 + test + + + + + diff --git a/samples/doris-demo/stream-load-demo/pom.xml b/samples/doris-demo/stream-load-demo/pom.xml new file mode 100644 index 00000000000000..2ac4e3adfa93d9 --- /dev/null +++ b/samples/doris-demo/stream-load-demo/pom.xml @@ -0,0 +1,49 @@ + + + + + doris-demo + org.apache + 1.0-SNAPSHOT + + 4.0.0 + + stream-load-demo + + stream-load-demo + + http://www.example.com + + + 8 + 8 + + + + + junit + junit + 4.11 + test + + + + From 7d8bc54ea0356e0c0e0f3bd1258788f6c2071347 Mon Sep 17 00:00:00 2001 From: "jiafeng.zhang" Date: Mon, 26 Jul 2021 09:07:57 +0800 Subject: [PATCH 2/2] add license add license --- samples/doris-demo/README.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/samples/doris-demo/README.md b/samples/doris-demo/README.md index d4277998dcb0a1..4f67e2ac86a673 100644 --- a/samples/doris-demo/README.md +++ b/samples/doris-demo/README.md @@ -1,4 +1,21 @@ - + In order to help developers quickly use and master Doris, this project provides a large number of code examples of Doris related scenarios.