[KYUUBI #5154] [Doc] Move configuration docs to the top level

### _Why are the changes needed?_

- Move the configuration docs to the top level of docs, which is most commonly used and referenced
- update relevant doc links

![image](https://github.com/apache/kyuubi/assets/1935105/a1dd35cc-d37f-4294-9fed-b275956c2cc5)

### _How was this patch tested?_
- [x] 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/master/contributing/code/testing.html#running-tests) locally before make a pull request

Closes #5154 from bowenliang123/config-doc-first.

Closes #5154

b49ed3f8b [liangbowen] nit
db7f0d14d [liangbowen] update doc links
f8fd697a2 [liangbowen] move config docs to the top level
7448e4487 [liangbowen] change title of settings doc
40214ddd8 [liangbowen] move config doc in the front of deployment

Authored-by: liangbowen <liangbowen@gf.com.cn>
Signed-off-by: liangbowen <liangbowen@gf.com.cn>
This commit is contained in:
liangbowen 2023-08-11 18:23:08 +08:00
parent afc227db9c
commit ab1c46d431
14 changed files with 17 additions and 25 deletions

View File

@ -50,7 +50,7 @@ helm install --dry-run --debug --generate-name ../kyuubi
## Documentation
Configuration guide documentation for Kyuubi lives [on the website](https://kyuubi.readthedocs.io/en/master/deployment/settings.html#kyuubi-configurations). (Not just for Helm Chart)
Configuration guide documentation for Kyuubi lives [on the website](https://kyuubi.readthedocs.io/en/master/configuration/settings.html#kyuubi-configurations). (Not just for Helm Chart)
## Contributing

View File

@ -17,7 +17,7 @@
{{/*
A comma separated string of enabled frontend protocols, e.g. "REST,THRIFT_BINARY".
For details, see 'kyuubi.frontend.protocols': https://kyuubi.readthedocs.io/en/master/deployment/settings.html#frontend
For details, see 'kyuubi.frontend.protocols': https://kyuubi.readthedocs.io/en/master/configuration/settings.html#frontend
*/}}
{{- define "kyuubi.frontend.protocols" -}}
{{- $protocols := list }}

View File

@ -121,7 +121,7 @@ kyuubiConfDir: /opt/kyuubi/conf
# Kyuubi configurations files
kyuubiConf:
# The value (templated string) is used for kyuubi-env.sh file
# See example at conf/kyuubi-env.sh.template and https://kyuubi.readthedocs.io/en/master/deployment/settings.html#environments for more details
# See example at conf/kyuubi-env.sh.template and https://kyuubi.readthedocs.io/en/master/configuration/settings.html#environments for more details
kyuubiEnv: ~
# kyuubiEnv: |
# export JAVA_HOME=/usr/jdk64/jdk1.8.0_152
@ -130,7 +130,7 @@ kyuubiConf:
# export HIVE_HOME=/opt/hive
# The value (templated string) is used for kyuubi-defaults.conf file
# See https://kyuubi.readthedocs.io/en/master/deployment/settings.html#kyuubi-configurations for more details
# See https://kyuubi.readthedocs.io/en/master/configuration/settings.html#kyuubi-configurations for more details
kyuubiDefaults: ~
# kyuubiDefaults: |
# kyuubi.authentication=NONE
@ -142,7 +142,7 @@ kyuubiConf:
# kyuubi.ha.namespace=kyuubi
# The value (templated string) is used for log4j2.xml file
# See example at conf/log4j2.xml.template https://kyuubi.readthedocs.io/en/master/deployment/settings.html#logging for more details
# See example at conf/log4j2.xml.template https://kyuubi.readthedocs.io/en/master/configuration/settings.html#logging for more details
log4j2: ~
# Command to launch Kyuubi server (templated)

View File

@ -33,4 +33,4 @@
# kyuubi.ha.namespace kyuubi
#
# Details in https://kyuubi.readthedocs.io/en/master/deployment/settings.html
# Details in https://kyuubi.readthedocs.io/en/master/configuration/settings.html

View File

@ -52,4 +52,4 @@ data:
# kyuubi.frontend.bind.port 10009
#
# Details in https://kyuubi.readthedocs.io/en/master/deployment/settings.html
# Details in https://kyuubi.readthedocs.io/en/master/configuration/settings.html

View File

@ -449,7 +449,7 @@ Refresh the Hadoop configurations of the Kyuubi server.
### POST /admin/refresh/user_defaults_conf
Refresh the [user defaults configs](../../deployment/settings.html#user-defaults) with key in format in the form of `___{username}___.{config key}` from default property file.
Refresh the [user defaults configs](../../configuration/settings.html#user-defaults) with key in format in the form of `___{username}___.{config key}` from default property file.
### POST /admin/refresh/kubernetes_conf

View File

@ -16,7 +16,7 @@
-->
<!-- DO NOT MODIFY THIS FILE DIRECTLY, IT IS AUTO-GENERATED BY [org.apache.kyuubi.config.AllKyuubiConfiguration] -->
# Introduction to the Kyuubi Configurations System
# Configurations
Kyuubi provides several ways to configure the system and corresponding engines.

View File

@ -31,15 +31,6 @@ Basics
high_availability_guide
migration-guide
Configurations
--------------
.. toctree::
:maxdepth: 2
:glob:
settings
Engines
-------

View File

@ -179,6 +179,7 @@ What's Next
:glob:
quick_start/index
configuration/settings
deployment/index
Security <security/index>
monitor/index

View File

@ -43,4 +43,4 @@ The related configurations can be found at `Authentication Configurations`_
jdbc
../extensions/server/authentication
.. _Authentication Configurations: ../deployment/settings.html#authentication
.. _Authentication Configurations: ../configuration/settings.html#authentication

View File

@ -106,4 +106,4 @@ You can specify config `spark.kyuubi.conf.restricted.list` values to disable cha
2. A set statement with key equal to `spark.sql.optimizer.excludedRules` and value containing `org.apache.kyuubi.plugin.spark.authz.ranger.*` also does not allow modification.
.. _Apache Ranger: https://ranger.apache.org/
.. _Spark Configurations: ../../../deployment/settings.html#spark-configurations
.. _Spark Configurations: ../../../configuration/settings.html#spark-configurations

View File

@ -56,5 +56,5 @@ kyuubi.authentication.ldap.userFilter=hive-admin,hive,hive-test,hive-user
kyuubi.authentication.ldap.customLDAPQuery=(&(objectClass=group)(objectClass=top)(instanceType=4)(cn=Domain*)), (&(objectClass=person)(|(sAMAccountName=admin)(|(memberOf=CN=Domain Admins,CN=Users,DC=domain,DC=com)(memberOf=CN=Administrators,CN=Builtin,DC=domain,DC=com))))
```
Please refer to [Settings for LDAP authentication in Kyuubi](../deployment/settings.html?highlight=LDAP#authentication)
Please refer to [Settings for LDAP authentication in Kyuubi](../configuration/settings.html?highlight=LDAP#authentication)
for all configurations.

View File

@ -340,7 +340,7 @@ trait ProcBuilder {
protected def validateEnv(requiredEnv: String): Throwable = {
KyuubiSQLException(s"$requiredEnv is not set! For more information on installing and " +
s"configuring $requiredEnv, please visit https://kyuubi.readthedocs.io/en/master/" +
s"deployment/settings.html#environments")
s"configuration/settings.html#environments")
}
def clusterManager(): Option[String] = None

View File

@ -31,7 +31,7 @@ import org.apache.kyuubi.zookeeper.ZookeeperConf
// scalastyle:off line.size.limit
/**
* End-to-end test cases for configuration doc file
* The golden result file is "docs/deployment/settings.md".
* The golden result file is "docs/configuration/settings.md".
*
* To run the entire test suite:
* {{{
@ -46,7 +46,7 @@ import org.apache.kyuubi.zookeeper.ZookeeperConf
// scalastyle:on line.size.limit
class AllKyuubiConfiguration extends KyuubiFunSuite {
private val kyuubiHome: String = Utils.getCodeSourceLocation(getClass).split("kyuubi-server")(0)
private val markdown = Paths.get(kyuubiHome, "docs", "deployment", "settings.md")
private val markdown = Paths.get(kyuubiHome, "docs", "configuration", "settings.md")
.toAbsolutePath
private def loadConfigs = Array(
@ -64,7 +64,7 @@ class AllKyuubiConfiguration extends KyuubiFunSuite {
builder ++=
s"""
|# Introduction to the Kyuubi Configurations System
|# Configurations
|
|Kyuubi provides several ways to configure the system and corresponding engines.
|