ayushtkn commented on a change in pull request #1897:
URL: https://github.com/apache/hive/pull/1897#discussion_r566559562
##########
File path: ql/src/java/org/apache/hadoop/hive/ql/exec/repl/ReplDumpTask.java
##########
@@ -961,6 +985,20 @@ Long bootStrapDump(Path dumpRoot, DumpMetaData dmd, Path
cmRoot, Hive hiveDb)
}
}
+ private void updateReplSourceFor(Hive hiveDb, String dbName, Database db,
+ String value) throws HiveException {
+ Map<String, String> params = db.getParameters();
+ if (params != null) {
+ params.put("repl.source.for", value);
+ db.setParameters(params);
+ } else {
+ db.setParameters(Collections.singletonMap("repl.source.for", value));
+ }
+ hiveDb.alterDatabase(dbName, db);
+ LOG.warn("repl.source.for isn't specified for {} using value of {} ",
Review comment:
Removed
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]