Skip to content

Commit 420cdf7

Browse files
committed
fix curvine local cluster start
1 parent 7997d6f commit 420cdf7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

etc/curvine-env.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@
1919
export CURVINE_HOME="$(cd "$(dirname "$0")"/..; pwd)"
2020

2121
# Get the IP address from hostname, taking the last network interface address
22-
LOCAL_HOSTNAME=$(hostname -I | awk '{print $NF}')
22+
LOCAL_HOSTNAME="localhost"
23+
LOCAL_IP=$(hostname -I | awk '{print $NF}')
2324

2425
# master bound host name
2526
export CURVINE_MASTER_HOSTNAME=$LOCAL_HOSTNAME
2627

2728
# worker bound host name
28-
export CURVINE_WORKER_HOSTNAME=$LOCAL_HOSTNAME
29+
export CURVINE_WORKER_HOSTNAME=$LOCAL_IP
2930

3031
# The client server hostname is used to determine whether the worker and client are on the same machine.
3132
export CURVINE_CLIENT_HOSTNAME=$LOCAL_HOSTNAME

0 commit comments

Comments
 (0)