Skip to content

Commit

Permalink
fix java.net.UnknownHostException: etc (#10441)
Browse files Browse the repository at this point in the history
Fixed issue with base_dir detection. It used to result in UnknownHostException
  • Loading branch information
MosheBlumbergX authored Sep 24, 2024
1 parent 53a4971 commit f47d606
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/ksql
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
#

base_dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )
if [ "$base_dir" = "/" ]; then
base_dir=""
fi

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

Expand Down
3 changes: 3 additions & 0 deletions bin/ksql-datagen
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
set -ue

base_dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )
if [ "$base_dir" = "/" ]; then
base_dir=""
fi
: "${KSQL_CONFIG_DIR:="$base_dir/config"}"

: "${KSQL_LOG4J_OPTS:=""}"
Expand Down
3 changes: 3 additions & 0 deletions bin/ksql-restore-command-topic
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
# (Copyright) [2020] Confluent, Inc.

base_dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )
if [ "$base_dir" = "/" ]; then
base_dir=""
fi

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

Expand Down
3 changes: 3 additions & 0 deletions bin/ksql-server-start
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ then
fi

base_dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )
if [ "$base_dir" = "/" ]; then
base_dir=""
fi
: "${KSQL_CONFIG_DIR:="$base_dir/config"}"

: "${KSQL_LOG4J_OPTS:=""}"
Expand Down
3 changes: 3 additions & 0 deletions bin/ksql-test-runner
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
set -ue

base_dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )
if [ "$base_dir" = "/" ]; then
base_dir=""
fi
: "${KSQL_CONFIG_DIR:="$base_dir/config"}"

: "${KSQL_LOG4J_OPTS:=""}"
Expand Down
3 changes: 3 additions & 0 deletions bin/run-ksql-test
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
set -ue

base_dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )
if [ "$base_dir" = "/" ]; then
base_dir=""
fi
: "${KSQL_CONFIG_DIR:="$base_dir/config"}"

: "${KSQL_LOG4J_OPTS:=""}"
Expand Down

0 comments on commit f47d606

Please sign in to comment.