From e7f981916843c1a193ea06dafa7452fdfc5dabfc Mon Sep 17 00:00:00 2001 From: Adonis Ling Date: Sat, 25 Feb 2023 12:28:35 +0800 Subject: [PATCH] [chore](tools) Fix NoSuchMethodError while loading data by http requests (#17075) When we used the tool multi-fe to start multiple FEs cluster and loaded data by stream load way, the request failed. See the following log. The issue was caused by the netty libraries. There are multiple netty libraries in classpath and the FE used the newer version netty library which made these errors. --- tools/single-node-cluster/multi-fe | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/single-node-cluster/multi-fe b/tools/single-node-cluster/multi-fe index 81821a7c1a..c48ccf1734 100755 --- a/tools/single-node-cluster/multi-fe +++ b/tools/single-node-cluster/multi-fe @@ -198,8 +198,10 @@ function start_fe() { prepare "${port}" "${doris_home}" "${log_dir}" - local classpath - read -r -a classpath <<<"$(find "${libs_path}" -exec echo {} \+)" + declare -a classpath=("${libs_path}") + for lib in "${libs_path}"/*.jar; do + classpath+=("${lib}") + done if [[ "${id}" -gt 1 ]]; then helper="-helper 127.0.0.1:$((PORT + 1))"