dengzhhu653 commented on code in PR #6464:
URL: https://github.com/apache/hive/pull/6464#discussion_r3556440037
##########
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/datasource/DataSourceProvider.java:
##########
@@ -77,13 +85,54 @@ static String getMetastoreJdbcPasswd(Configuration conf)
throws SQLException {
}
static String getMetastoreJdbcDriverUrl(Configuration conf) throws
SQLException {
+ if (MetastoreConf.getBoolVar(conf,
MetastoreConf.ConfVars.METASTORE_PROFILE_JDBC_EXECUTION)) {
+ return MetastoreDriver.getMetastoreDbUrl(conf);
+ }
return MetastoreConf.getVar(conf, MetastoreConf.ConfVars.CONNECT_URL_KEY);
}
+ static void addJdbcWrapperProperties(Configuration configuration, Properties
properties)
+ throws SQLException {
+ if (MetastoreConf.getBoolVar(configuration,
MetastoreConf.ConfVars.METASTORE_PROFILE_JDBC_EXECUTION)) {
+ try {
+ ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
+ configuration.writeXml(outputStream);
+ properties.put(CONF_PROPERTY,
Base64.getEncoder().encodeToString(outputStream.toByteArray()));
Review Comment:
make sense, I have filtered the properties that only the profiler wants
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]