kyuubi/kyuubi-zookeeper/src
Fu Chen f43c78d216
[KYUUBI #1004] Creates the default zk address instead of falling back to frontend bind address
<!--
Thanks for sending a pull request!

Here are some tips for you:
  1. If this is your first time, please read our contributor guidelines: https://kyuubi.readthedocs.io/en/latest/community/contributions.html
  2. If the PR is related to an issue in https://github.com/apache/incubator-kyuubi/issues, add '[KYUUBI #XXXX]' in your PR title, e.g., '[KYUUBI #XXXX] Your PR title ...'.
  3. If the PR is unfinished, add '[WIP]' in your PR title, e.g., '[WIP][KYUUBI #XXXX] Your PR title ...'.
-->

### _Why are the changes needed?_
<!--
Please clarify why the changes are needed. For instance,
  1. If you add a feature, you can talk about the use case of it.
  2. If you fix a bug, you can clarify why it is a bug.
-->

As the Spark driver may launch from another node, when we start the Kyuubi server with an embedded zookeeper and bind the frontend address to `0.0.0.0`, the backend engine can't register correctly.

This pr changes the default behavior of `kyuubi.zookeeper.embedded.client.port.address`, creates the default zookeeper address with local hostname instead of falling back to `kyuubi.frontend.bind.host`.

### _How was this patch tested?_
- [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

- [ ] Add screenshots for manual tests if appropriate

- [ ] [Run test](https://kyuubi.readthedocs.io/en/latest/develop_tools/testing.html#running-tests) locally before make a pull request

Closes #1004 from cfmcgrady/fallback-address.

Closes #1004

99f0a143 [Fu Chen] fix test
5e66c5f0 [Fu Chen] create default zk address instead of fall back to frontend bind address

Authored-by: Fu Chen <cfmcgrady@gmail.com>
Signed-off-by: Kent Yao <yao@apache.org>
2021-08-31 20:59:26 +08:00
..
main/scala/org/apache/kyuubi/zookeeper [KYUUBI #1004] Creates the default zk address instead of falling back to frontend bind address 2021-08-31 20:59:26 +08:00
test Revert "[KYUUBI #488] Add kyuubi-shaded module to avoid conflicts with external jars" 2021-04-10 00:16:04 +08:00