dolphinscheduler icon indicating copy to clipboard operation
dolphinscheduler copied to clipboard

[BUG] Hive JDBC connection parameter ignored

Open KEN-LJQ opened this issue 6 years ago • 2 comments

Describe the bug The jdbc connection parameter of Hive datasource, should append after the question mark when building jdbc url, like jdbc:hive2://host:port/default?mapred.job.queue.name=root.users.a. But actually, it append after the semicolon, so the result is jdbc:hive2://host:port/default;mapred.job.queue.name=root.users.a, which make the parameter being ignored

image

For testing, I set the parameter in this way {"?mapred.job.queue.name":"root.user.a"}, and now it can be set correctly

Which version of Dolphin Scheduler:

  • [1.2.1-release]

KEN-LJQ avatar Jun 07 '20 12:06 KEN-LJQ

I think it's easy to fix, if you are interesting in implementing it, please leave a message, then submit a PR.

please consider the principal is also optional, so Unit Test is also needed

davidzollo avatar Jun 08 '20 07:06 davidzollo

OK, I will fix it

KEN-LJQ avatar Jun 08 '20 12:06 KEN-LJQ