Unverified Commit dcea90b0 authored by wforget's avatar wforget Committed by ulysses-you
Browse files

[KYUUBI #2461] Use the original host argument

### _Why are the changes needed?_

close #2461

### _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.apache.org/docs/latest/develop_tools/testing.html#running-tests

) locally before make a pull request

Closes #2462 from wForget/KYUUBI-2461.

Closes #2461

1a0a60e9 [wforget] [KYUUBI-2461] Use the original host argument
Authored-by: default avatarwforget <643348094@qq.com>
Signed-off-by: default avatarulysses-you <ulyssesyou@apache.org>
parent f13856aa
Showing with 2 additions and 1 deletion
+2 -1
......@@ -249,7 +249,8 @@ class ServiceControlCliArguments(args: Seq[String], env: Map[String, String] = s
}
try {
cliArgs = cliArgs.copy(host = InetAddress.getByName(cliArgs.host).getCanonicalHostName)
InetAddress.getByName(cliArgs.host)
cliArgs = cliArgs.copy(host = cliArgs.host)
} catch {
case _: Exception =>
fail(s"Unknown host: ${cliArgs.host}")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment