Skip to content

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

@garyli1019 garyli1019 requested a review from hk-lrzy February 13, 2023 08:28
}
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