CalvinKirs opened a new pull request, #61155:
URL: https://github.com/apache/doris/pull/61155
…
PaimonSysTableJniScanner / related JNI paths currently only consume
hadoopProps.
When a catalog uses the new HMS kerberos parameters:
- hive.metastore.authentication.type
- hive.metastore.client.principal
- hive.metastore.client.keytab
but does not explicitly configure HDFS kerberos parameters, JNI cannot
recognize the kerberos identity from getHadoopProperties().
This is especially visible in the HMS kerberos + OSS storage scenario:
HMS access should use kerberos, while storage access should still use OSS
credentials.
## What Changed
### 1. Temporary compatibility in CatalogProperty#getHadoopProperties()
When catalog properties contain:
- hive.metastore.authentication.type=kerberos
- hive.metastore.client.principal
- hive.metastore.client.keytab
getHadoopProperties() now injects canonical Hadoop kerberos keys:
- hadoop.security.authentication=kerberos
- hadoop.kerberos.principal=<hive.metastore.client.principal>
- hadoop.kerberos.keytab=<hive.metastore.client.keytab>
If configured, it also passes through:
- hadoop.security.auth_to_local
This is a short-term compatibility fix so JNI paths can reuse HMS kerberos
identity even when only HMS-side kerberos properties are provided.
# Conflicts:
#
fe/fe-core/src/main/java/org/apache/doris/datasource/CatalogProperty.java #
regression-test/data/external_table_p2/paimon/test_paimon_hms_catalog.out #
regression-test/suites/external_table_p2/paimon/test_paimon_hms_catalog.groovy
### What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
### Release note
None
### Check List (For Author)
- Test <!-- At least one of them must be included. -->
- [ ] Regression test
- [ ] Unit Test
- [ ] Manual test (add detailed scripts or steps below)
- [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
- [ ] Previous test can cover this change.
- [ ] No code files have been changed.
- [ ] Other reason <!-- Add your reason? -->
- Behavior changed:
- [ ] No.
- [ ] Yes. <!-- Explain the behavior change -->
- Does this need documentation?
- [ ] No.
- [ ] Yes. <!-- Add document PR link here. eg:
https://github.com/apache/doris-website/pull/1214 -->
### Check List (For Reviewer who merge this PR)
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR should
merge into -->
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]