This is an automated email from the ASF dual-hosted git repository.
spricoder pushed a commit to branch object_type_tiff
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/object_type_tiff by this push:
new 8d98dc8efaa 修改启动脚本
8d98dc8efaa is described below
commit 8d98dc8efaa5f4a2925208c8b1451d5c9234775a
Author: spricoder <[email protected]>
AuthorDate: Sat Aug 16 15:53:17 2025 +0800
修改启动脚本
---
scripts/sbin/start-datanode.sh | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/scripts/sbin/start-datanode.sh b/scripts/sbin/start-datanode.sh
index 8f4c274d1b5..c43ceed74a7 100755
--- a/scripts/sbin/start-datanode.sh
+++ b/scripts/sbin/start-datanode.sh
@@ -26,6 +26,8 @@ foreground="yes"
IOTDB_HEAP_DUMP_COMMAND=""
+CLASSPATH=""
+
if [ $# -ne 0 ]; then
echo "All parameters are $*"
fi
@@ -80,8 +82,13 @@ while true; do
;;
-l)
LIBRARY_PATH="$2"
+ shift 2
echo "Execute start-datanode.sh get library ${LIBRARY_PATH}"
- break
+ ;;
+ -t)
+ CLASSPATH="$2"
+ shift 2
+ echo "Execute start-datanode.sh get class ${CLASSPATH}"
;;
--)
shift
@@ -113,7 +120,6 @@ checkAllVariables
#checkDataNodePortUsages is in iotdb-common.sh
checkDataNodePortUsages
-CLASSPATH=""
for f in "${IOTDB_HOME}"/lib/*.jar; do
CLASSPATH=${CLASSPATH}":"$f
done