From 88a96d68cd0fce1bf9c7d707d478b215db055a7d Mon Sep 17 00:00:00 2001 From: "jiafeng.zhang" Date: Mon, 26 Jul 2021 10:16:48 +0800 Subject: [PATCH] [Sample] Doris developers quickly use the development sample code framework, (#6301) The main purpose of this project is to let doris use development, which can get started quickly, and give sample codes for the use of various new functions as a reference. Submit the framework first, and the code will be 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 | 40 +++++++++++++++++ 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, 266 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 0000000000..4f67e2ac86 --- /dev/null +++ b/samples/doris-demo/README.md @@ -0,0 +1,40 @@ + + +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 0000000000..74e1a829e0 --- /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 0000000000..5c6501e85d --- /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 0000000000..6190b1292d --- /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 0000000000..2622a80733 --- /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 0000000000..2ac4e3adfa --- /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 + + + +