You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@kyuubi.apache.org by GitBox <gi...@apache.org> on 2022/04/01 14:44:23 UTC

[GitHub] [incubator-kyuubi] cxzl25 commented on a change in pull request #2259: [KYUUBI #2257] Replace string conf key with ConfVars varname in HiveSQLEngine

cxzl25 commented on a change in pull request #2259:
URL: https://github.com/apache/incubator-kyuubi/pull/2259#discussion_r840658172



##########
File path: externals/kyuubi-hive-sql-engine/src/main/scala/org/apache/kyuubi/engine/hive/HiveSQLEngine.scala
##########
@@ -77,10 +77,10 @@ object HiveSQLEngine extends Logging {
       (msConnUrl != null && msConnUrl.startsWith("jdbc:derby"))
     }
     if (isEmbeddedMetaStore) {
-      hiveConf.setBoolean("hive.metastore.schema.verification", false)
-      hiveConf.setBoolean("datanucleus.schema.autoCreateAll", true)
+      hiveConf.setBoolean(ConfVars.METASTORE_SCHEMA_VERIFICATION.varname, false)
+      hiveConf.setBoolean(ConfVars.METASTORE_AUTO_CREATE_ALL.varname, true)
       hiveConf.set(
-        "hive.metastore.warehouse.dir",
+        ConfVars.METASTOREWAREHOUSE.varname,

Review comment:
       These configurations are copied to `MetastoreConf` in Hive 3.0 ( [HIVE-17167](https://issues.apache.org/jira/browse/HIVE-17167) ) and marked as Deprecated in `HiveConf` ([HIVE-19031](https://issues.apache.org/jira/browse/HIVE-19031))




-- 
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: notifications-unsubscribe@kyuubi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org