Skip to content

Commit 88270e7

Browse files
committed
Minor fixups
1 parent 3f48d94 commit 88270e7

File tree

5 files changed

+22
-10
lines changed

5 files changed

+22
-10
lines changed

doris/install.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/bin/bash
2-
wget --timestamping https://apache-doris-releases.oss-accelerate.aliyuncs.com/${DORIS_PACKAGE}.tar.gz
3-
mkdir ${DORIS_PACKAGE}
4-
tar -xvf ./${DORIS_PACKAGE}.tar.gz --strip-components 1 -C ./${DORIS_PACKAGE}
2+
3+
wget https://apache-doris-releases.oss-accelerate.aliyuncs.com/${DORIS_FULL_NAME}.tar.gz
4+
mkdir ${DORIS_FULL_NAME}
5+
tar -xvf ${DORIS_FULL_NAME}.tar.gz --strip-components 1 -C ${DORIS_FULL_NAME}
6+
7+
sudo apt-get update
8+
sudo apt-get install -y mysql-client openjdk-17-jre-headless # somehow _EXACTLY_ v17 is needed

doris/main.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/bash
2-
export DORIS_PACKAGE="apache-doris-3.0.5-bin-x64"
2+
3+
export DORIS_FULL_NAME="apache-doris-3.0.5-bin-x64"
34

45
DEFAULT_CHOICE=ask
56
DEFAULT_DATA_DIRECTORY=~/data/bluesky
@@ -82,4 +83,4 @@ case $CHOICE in
8283
esac
8384

8485
./stop.sh
85-
#./uninstall.sh
86+
./uninstall.sh

doris/start.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
#!/bin/bash
2-
./${DORIS_PACKAGE}/be/bin/start_be.sh --daemon
3-
./${DORIS_PACKAGE}/fe/bin/start_fe.sh --daemon
42

3+
${DORIS_FULL_NAME}/be/bin/start_be.sh --daemon
4+
${DORIS_FULL_NAME}/fe/bin/start_fe.sh --daemon
5+
6+
echo "Sleep 30 sec"
57
sleep 30s
68

79
mysql -P 9030 -h 127.0.0.1 -u root -e "ALTER SYSTEM ADD BACKEND \"127.0.0.1:9050\";"
810

11+
echo "Sleep 10 sec"
912
sleep 10s

doris/stop.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
#!/bin/bash
2-
./${DORIS_PACKAGE}/be/bin/stop_be.sh
3-
./${DORIS_PACKAGE}/fe/bin/stop_fe.sh
2+
3+
${DORIS_FULL_NAME}/be/bin/stop_be.sh
4+
${DORIS_FULL_NAME}/fe/bin/stop_fe.sh

doris/uninstall.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
#!/bin/bash
2-
rm -rf ./${DORIS_PACKAGE}
2+
3+
sudo apt-get remove -y mysql-client openjdk-17-jre-headless
4+
5+
rm -rf ${DORIS_FULL_NAME}

0 commit comments

Comments
 (0)