Skip to content

Commit f47d606

Browse files
authoredSep 24, 2024
fix java.net.UnknownHostException: etc (confluentinc#10441)
Fixed issue with base_dir detection. It used to result in UnknownHostException
1 parent 53a4971 commit f47d606

6 files changed

+18
-0
lines changed
 

‎bin/ksql

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
#
77

88
base_dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )
9+
if [ "$base_dir" = "/" ]; then
10+
base_dir=""
11+
fi
912

1013
: "${KSQL_CONFIG_DIR:="$base_dir/config"}"
1114

‎bin/ksql-datagen

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
set -ue
88

99
base_dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )
10+
if [ "$base_dir" = "/" ]; then
11+
base_dir=""
12+
fi
1013
: "${KSQL_CONFIG_DIR:="$base_dir/config"}"
1114

1215
: "${KSQL_LOG4J_OPTS:=""}"

‎bin/ksql-restore-command-topic

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
# (Copyright) [2020] Confluent, Inc.
33

44
base_dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )
5+
if [ "$base_dir" = "/" ]; then
6+
base_dir=""
7+
fi
58

69
: "${KSQL_CONFIG_DIR:="$base_dir/config"}"
710

‎bin/ksql-server-start

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ then
1212
fi
1313

1414
base_dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )
15+
if [ "$base_dir" = "/" ]; then
16+
base_dir=""
17+
fi
1518
: "${KSQL_CONFIG_DIR:="$base_dir/config"}"
1619

1720
: "${KSQL_LOG4J_OPTS:=""}"

‎bin/ksql-test-runner

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
set -ue
88

99
base_dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )
10+
if [ "$base_dir" = "/" ]; then
11+
base_dir=""
12+
fi
1013
: "${KSQL_CONFIG_DIR:="$base_dir/config"}"
1114

1215
: "${KSQL_LOG4J_OPTS:=""}"

‎bin/run-ksql-test

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
set -ue
88

99
base_dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )
10+
if [ "$base_dir" = "/" ]; then
11+
base_dir=""
12+
fi
1013
: "${KSQL_CONFIG_DIR:="$base_dir/config"}"
1114

1215
: "${KSQL_LOG4J_OPTS:=""}"

0 commit comments

Comments
 (0)
Please sign in to comment.