How to escape "=" character in url ? #2965
-
Hello team, I want to set a Var key=value in Kyuubi JDBC Url, but the value is a base64 string, that contains "=" character . How to escape "=" character in url var ? url: "fs.azure.account.key.pfsdpstorage.dfs.core.windows.net=............A==" run "set " command: +---------------------------------------------------------------------------+----------------------------------------------------+ Expected: +---------------------------------------------------------------------------+----------------------------------------------------+ i try to replace "=" with %3D, not luck. The only work around: spark.conf.set("fs.azure.account.key.pfsdpstorage.dfs.core.windows.net", " ............A==");
spark.sql("SET kyuubi.operation.language=SQL;"); |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
seems it needs to be handled on our jdbc driver side. cc @turboFei. Can you try to remove the trailing '=' padding? @SimonYang-CS |
Beta Was this translation helpful? Give feedback.
-
You can try url encoding, |
Beta Was this translation helpful? Give feedback.
-
I looked into beeline source, I think we can pass the key=var from Properties. public Connection getConnectionFromLocalDriver(String url, Properties properties) {
Collection<Driver> drivers = beeLine.getDrivers();
for (Driver d : drivers) {
try {
if (d.acceptsURL(url) && beeLine.isSupportedLocalDriver(d)) {
String clazzName = d.getClass().getName();
beeLine.debug("Driver name is " + clazzName);
Driver driver =
(Driver) Class.forName(clazzName, true, Thread.currentThread().getContextClassLoader())
.newInstance();
return driver.connect(url, properties);
}
} catch (Exception e) {
beeLine.error("Fail to connect with a local driver due to the exception:" + e);
beeLine.error(e);
}
}
return null;
} |
Beta Was this translation helpful? Give feedback.
seems it needs to be handled on our jdbc driver side. cc @turboFei.
Can you try to remove the trailing '=' padding? @SimonYang-CS