kyuubi/docs
timothy65535 5526898f7b [KYUUBI #894] Enhance kyuubi-zookeeper module
<!--
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.
-->

### 1. Describe the feature

Kyuubi use `TestingServer` as the EmbeddedZookeeper service in codebase, and require many args to init the service. These `electionPort`, `quorumPort`, `serverId` parameters only work in cluster mode, these ports are not bound to the host.

From hadoop and bookkeeper project, they use `ZooKeeperServer` as a built-in zk service, especially the bookeeper project.
- https://github.com/apache/hadoop/blob/trunk/hadoop-common-project/hadoop-registry/src/main/java/org/apache/hadoop/registry/server/services/MicroZookeeperService.java
- https://github.com/apache/bookkeeper/blob/master/bookkeeper-server/src/main/java/org/apache/bookkeeper/shims/zk/ZooKeeperServerShimImpl.java

### 2. Describe the solution

Improve
- Remove `electionPort`, `quorumPort`, `serverId` which are nerver be used, hadoop and bookkeer do the same
- Replace `TestingServer` with `ZooKeeperServer`
- Remove `curator-test` dependency

### 3. `deleteDataDirectoryOnClose`

The name style for `deleteDataDirectoryOnClose` option, refer to hadoop `core-default.xml`
https://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-common/core-default.xml
```
hadoop.security.dns.log-slow-lookups.enabled
hadoop.security.dns.log-slow-lookups.threshold.ms
dfs.client.block.write.replace-datanode-on-failure.policy
```

### _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

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

Closes #907 from timothy65535/ky-894.

Closes #894

7d7fde9f [timothy65535] remove useless config
ce06a0fd [timothy65535] limit travis build only master branch
ff825c3f [timothy65535] revert deleteDataDirectoryOnClose config
a336544a [timothy65535] remove javassist
3da0bd55 [timothy65535] remove javassist
0abb44df [timothy65535] [KYUUBI #894] Enhance kyuubi-zookeeper module

Authored-by: timothy65535 <timothy65535@163.com>
Signed-off-by: ulysses-you <ulyssesyou18@gmail.com>
2021-08-11 10:06:44 +08:00
..
appendix logo 2021-03-19 21:08:52 +08:00
client logo 2021-03-19 21:08:52 +08:00
community [KYUUBI #912] Fix broken links in the doc and PULL_REQUEST_TEMPLATE 2021-08-10 11:29:32 +08:00
deployment [KYUUBI #894] Enhance kyuubi-zookeeper module 2021-08-11 10:06:44 +08:00
develop_tools [KYUUBI #889] [BUILD] Package release tarball 2021-08-06 13:17:51 +08:00
imgs [KYUUBI #605] Improve the landscape for README 2021-04-25 20:03:33 +08:00
integrations [KYUUBI #870] [MISC] Migrate from NetEase to Apache 2021-07-28 21:31:46 +08:00
monitor [KYUUBI #630] [METRICS] Support expose Prometheus metrics 2021-05-13 12:32:27 +08:00
overview logo 2021-03-19 21:08:52 +08:00
quick_start [KYUUBI #889] [BUILD] Package release tarball 2021-08-06 13:17:51 +08:00
security [KYUUBI #870] [MISC] Migrate from NetEase to Apache 2021-07-28 21:31:46 +08:00
sql [KYUUBI #882] Rename kyuubi-extension-spark_3.1 to kyuubi-extension-spark-3-1 2021-08-02 19:39:04 +08:00
tools [KYUUBI #815] [DOC] [KUBERNETES] Doc for spark-block-cleaner 2021-07-16 22:21:39 +08:00
conf.py [KYUUBI #870] [MISC] Migrate from NetEase to Apache 2021-07-28 21:31:46 +08:00
index.rst [KYUUBI #815] [DOC] [KUBERNETES] Doc for spark-block-cleaner 2021-07-16 22:21:39 +08:00
make.bat doc init 2020-10-28 15:28:24 +08:00
Makefile doc init 2020-10-28 15:28:24 +08:00
requirements.txt [KYUUBI #614] [BUILD][DOCS] Bump sphinx 2021-04-28 20:16:26 +08:00