Skip to content
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

[BitSail] support load hive conf from specified location #390

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

garyli1019
Copy link
Collaborator

@garyli1019 garyli1019 commented Feb 13, 2023

Signed-off-by:

Pre-Checklist

Note: Please complete ALL items in the following checklist.

  • I have read through the CONTRIBUTING.md documentation.
  • My code has the necessary comments and documentation (if needed).
  • I have added relevant tests.

Purpose

support load hive configuration file from a user defined location

Approaches

pass the location from BitSailConfiguration to hive meta client builder

Related Issues

Close #193

New Behavior (screenshots if needed)

N/A

@@ -117,6 +117,7 @@ private void addSinkConf(BitSailConfiguration jobConf) {
return;
}
if (HIVE_FORMAT_TYPE_VALUE.equalsIgnoreCase(formatType)) {
//TODO: whether to load from hive conf location?
Preconditions.checkState(jobConf.fieldExists(FileSystemSinkOptions.HIVE_METASTORE_PROPERTIES));
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hk-lrzy not quite sure about this check, is this config a must have option here?

HiveConf hiveConf = HiveMetaClientUtil.getHiveConf(hiveProperties);
HiveConf hiveConf;
if (hiveConfLocation != null) {
hiveConf = HiveMetaClientUtil.getHiveConf(hiveConfLocation);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can't get hive site file in here when we run job in yarn or k8s environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support loading hiveConf from hive-site.xml with customized location for hive connector
2 participants