kyuubi/bin
dnskr 5a20267dbc
[KYUUBI #6523] Support configuration with --conf options
# 🔍 Description
## Issue References 🔗

This pull request fixes https://github.com/apache/kyuubi/issues/6523

## Describe Your Solution 🔧

`KyuubiServer` respects configuration properties provided as `--conf` cli options with highest priority.

## Types of changes 🔖

- [ ] Bugfix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)

## Test Plan 🧪

#### Behavior Without This Pull Request ⚰️
REST endpoint starts at `10099` port:
```shell
bin/kyuubi run --conf kyuubi.frontend.rest.bind.port=9999
...
2024-07-10 17:57:24.998 INFO main org.apache.kyuubi.server.KyuubiRestFrontendService: Service[KyuubiRestFrontendService] is started.
2024-07-10 17:57:24.999 INFO main org.apache.kyuubi.server.KyuubiRestFrontendService: Exposing REST endpoint at: http://0.0.0.0:10099
2024-07-10 17:57:24.999 INFO main org.apache.kyuubi.server.KyuubiServer: Service[KyuubiServer] is started.
```

#### Behavior With This Pull Request 🎉
REST endpoint starts at `9999` port:
```shell
bin/kyuubi run --conf kyuubi.frontend.rest.bind.port=9999
...
2024-07-10 17:49:41.659 INFO main org.apache.kyuubi.server.KyuubiRestFrontendService: Service[KyuubiRestFrontendService] is started.
2024-07-10 17:49:41.660 INFO main org.apache.kyuubi.server.KyuubiRestFrontendService: Exposing REST endpoint at: http://0.0.0.0:9999
2024-07-10 17:49:41.660 INFO main org.apache.kyuubi.server.KyuubiServer: Service[KyuubiServer] is started.
```

#### Related Unit Tests
`kyuubi-common/src/test/scala/org/apache/kyuubi/config/KyuubiConfSuite.scala`

---

# Checklist 📝

- [ ] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html)

**Be nice. Be informative.**

Closes #6530 from dnskr/kyuubi-supports-conf-args.

Closes #6523

c7dbb305b [dnskr] Parse command and shift args
4977af168 [dnskr] [KYUUBI #6523] Support configuration with --conf options

Authored-by: dnskr <dnskrv88@gmail.com>
Signed-off-by: Cheng Pan <chengpan@apache.org>
2024-07-18 11:33:17 +08:00
..
beeline [KYUUBI #6239] Rename beeline to kyuubi-beeline 2024-04-03 18:35:38 +08:00
docker-image-tool.sh [KYUUBI #6175] [MINOR] Refactor copy path about SPARK_HOME in docker 2024-03-13 11:16:44 +08:00
kyuubi [KYUUBI #6523] Support configuration with --conf options 2024-07-18 11:33:17 +08:00
kyuubi-admin [KYUUBI #6196] Add log4j2 template for kyuubi repl commands 2024-03-19 14:35:53 +08:00
kyuubi-beeline [KYUUBI #6239] Rename beeline to kyuubi-beeline 2024-04-03 18:35:38 +08:00
kyuubi-ctl [KYUUBI #6196] Add log4j2 template for kyuubi repl commands 2024-03-19 14:35:53 +08:00
kyuubi-logo [KYUUBI #4078] [FOLLOWUP] fix shellcheck violations in scripts of /bin folder 2023-03-07 10:32:27 +08:00
kyuubi-zk-cli [KYUUBI #6196] Add log4j2 template for kyuubi repl commands 2024-03-19 14:35:53 +08:00
load-kyuubi-env.sh [KYUUBI #6456] Opens jdk.internal.ref 2024-06-07 11:02:04 +08:00
stop-application.sh [KYUUBI #4078] [FOLLOWUP] fix shellcheck violations in scripts of /bin folder 2023-03-07 10:32:27 +08:00