-
Notifications
You must be signed in to change notification settings - Fork 4.8k
HIVE-29191: Gracefully Handle Removed Configuration Properties in Hiv… #6073
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
…e 4 to Avoid Job Failures
|
HIVE_IGNORE_REMOVED_CONFIGS_LIST("hive.ignore.removed.configs.list", | ||
"", | ||
"Comma separated list of configuration options which are removed from hive code. Silently ignore if the user tries to set them"), | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need a new property since this complicates the deprecation and removal of properties even more. hive.conf.validation
seems to be enough for skipping validation although I don't like much this flag either.
public static String generateRemovedWarning() { | ||
return "This config does not exist in the current version of Hive. Consider removing this config."; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are better ways to log warning about deprecated/removed properties. See: org.apache.hadoop.conf.Configuration#addDeprecation
Sets.newHashSet("hive.mapred.supports.subdirectories", | ||
"hive.enforce.sorting","hive.enforce.bucketing", | ||
"hive.outerjoin.supports.filters", | ||
"hive.llap.zk.sm.principal", | ||
"hive.llap.zk.sm.keytab.file" | ||
"hive.llap.zk.sm.keytab.file", | ||
"hive.stats.fetch.partition.stats", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there are other configs as well which I found doesn't exist in hive:
- hive.repl.dumpdir.ttl
- hive.repl.dumpdir.clean.freq
- hive.llap.io.vrb.queue.limit.base
- hive.llap.external.splits.order.by.force.single.split
…e 4 to Avoid Job Failures
What changes were proposed in this pull request?
Why are the changes needed?
Does this PR introduce any user-facing change?
How was this patch tested?