[KYUUBI #4954] [DOCS] Fix variable reference in quick_start_with_jdbc
fix typo, replace kyuubiJdbcUrl with kyuubiJdbcUrlTemplate. ### _Why are the changes needed?_ fix typo, should be String.format(kyuubiJdbcUrlTemplate, ...) ### _How was this patch tested?_ just fix typo, no test need. - [ ] 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.readthedocs.io/en/master/develop_tools/testing.html#running-tests) locally before make a pull request Closes #4954 from uicosp/patch-1. Closes #4954 8abf04d87 [鱼肚] Update quick_start_with_jdbc.md Authored-by: 鱼肚 <uicosp@gmail.com> Signed-off-by: Cheng Pan <chengpan@apache.org>
This commit is contained in:
parent
cca4405fcb
commit
32bb71efcc
@ -80,7 +80,7 @@ public class KyuubiJDBCDemo {
|
||||
String clientPrincipal = args[0]; // Kerberos principal
|
||||
String clientKeytab = args[1]; // Keytab file location
|
||||
String serverPrincipal = arg[2]; // Kerberos principal used by Kyuubi Server
|
||||
String kyuubiJdbcUrl = String.format(kyuubiJdbcUrl, clientPrincipal, clientKeytab, serverPrincipal);
|
||||
String kyuubiJdbcUrl = String.format(kyuubiJdbcUrlTemplate, clientPrincipal, clientKeytab, serverPrincipal);
|
||||
try (Connection conn = DriverManager.getConnection(kyuubiJdbcUrl)) {
|
||||
try (Statement stmt = conn.createStatement()) {
|
||||
try (ResultSet rs = st.executeQuery("show databases")) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user