This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git
The following commit(s) were added to refs/heads/master by this push:
new 68c4bb3 [chore] Build script add build broker option (#7885)
68c4bb3 is described below
commit 68c4bb34e6d855a7796f0ef867b4a99d53c4147f
Author: wudi <[email protected]>
AuthorDate: Mon Jan 31 22:13:25 2022 +0800
[chore] Build script add build broker option (#7885)
---
build.sh | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/build.sh b/build.sh
index a4dd472..80732ba 100755
--- a/build.sh
+++ b/build.sh
@@ -49,6 +49,7 @@ Usage: $0 <options>
Optional options:
--be build Backend
--fe build Frontend and Spark Dpp application
+ --broker build Broker
--ui build Frontend web ui with npm
--spark-dpp build Spark DPP application
--clean clean and build target
@@ -61,6 +62,7 @@ Usage: $0 <options>
$0 --fe --be --clean clean and build Frontend, Spark
Dpp application and Backend, without web UI
$0 --spark-dpp build Spark DPP application alone
$0 --fe --ui build Frontend web ui with npm
+ $0 --broker build Broker
"
exit 1
}
@@ -91,6 +93,7 @@ OPTS=$(getopt \
-o 'h' \
-l 'be' \
-l 'fe' \
+ -l 'broker' \
-l 'ui' \
-l 'spark-dpp' \
-l 'clean' \
@@ -107,6 +110,7 @@ eval set -- "$OPTS"
PARALLEL=$[$(nproc)/4+1]
BUILD_BE=
BUILD_FE=
+BUILD_BROKER=
BUILD_UI=
BUILD_SPARK_DPP=
CLEAN=
@@ -115,12 +119,14 @@ if [ $# == 1 ] ; then
# default
BUILD_BE=1
BUILD_FE=1
+ BUILD_BROKER=1
BUILD_UI=1
BUILD_SPARK_DPP=1
CLEAN=0
else
BUILD_BE=0
BUILD_FE=0
+ BUILD_BROKER=0
BUILD_UI=0
BUILD_SPARK_DPP=0
CLEAN=0
@@ -129,6 +135,7 @@ else
--be) BUILD_BE=1 ; shift ;;
--fe) BUILD_FE=1 ; shift ;;
--ui) BUILD_UI=1 ; shift ;;
+ --broker) BUILD_BROKER=1 ; shift ;;
--spark-dpp) BUILD_SPARK_DPP=1 ; shift ;;
--clean) CLEAN=1 ; shift ;;
-h) HELP=1; shift ;;
@@ -183,6 +190,7 @@ fi
echo "Get params:
BUILD_BE -- $BUILD_BE
BUILD_FE -- $BUILD_FE
+ BUILD_BROKER -- $BUILD_BROKER
BUILD_UI -- $BUILD_UI
BUILD_SPARK_DPP -- $BUILD_SPARK_DPP
PARALLEL -- $PARALLEL
@@ -350,6 +358,17 @@ if [ ${BUILD_BE} -eq 1 ]; then
fi
+if [ ${BUILD_BROKER} -eq 1 ]; then
+ install -d ${DORIS_OUTPUT}/apache_hdfs_broker
+
+ cd ${DORIS_HOME}/fs_brokers/apache_hdfs_broker/
+ ./build.sh
+ rm -rf ${DORIS_OUTPUT}/apache_hdfs_broker/*
+ cp -r -p
${DORIS_HOME}/fs_brokers/apache_hdfs_broker/output/apache_hdfs_broker/*
${DORIS_OUTPUT}/apache_hdfs_broker/
+ cd ${DORIS_HOME}
+fi
+
+
echo "***************************************"
echo "Successfully build Doris"
echo "***************************************"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]