Skip to content

Improve "local-cluster.sh" script to bind hostnames defined in "server.yaml" #2272

@wuchong

Description

@wuchong

Search before asking

  • I searched in the issues and found nothing similar.

Motivation

Currently, the local-cluster.sh script hardcodes TabletServer addresses to localhost:0, ignoring the bind.listeners configuration in server.yaml (which defaults to FLUSS://localhost:9123 but can be customized to an externally accessible IP and port).

This inconsistency causes a usability issue: while the Coordinator can be reached from external machines (thanks to bind.listeners), TabletServers remain bound to localhost and are therefore inaccessible externally.

Solution

To improve usability and consistency, TabletServers should use the same hostname (or IP) specified in bind.listeners, while still using port 0 to avoid conflicts with the Coordinator’s fixed port. This ensures the entire local cluster can be uniformly accessed from remote clients when needed.

Anything else?

No response

Willingness to contribute

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions