Repository navigation
Integrate AbfsVendedTokenProvider to the unity catalog - #1176
Conversation
There was a problem hiding this comment.
I think we need to remove those azurefs packages import here, otherwise it will require use to add the hadoop-azure dependency even if people just access the aws s3 storage. Which will highly confuse the end users.
My suggestion is making those to be some static defined configuration keys in the UCHadoopConf, that will be better.
| @@ -1,8 +1,8 @@ | |||
| package io.unitycatalog.spark.auth; | |||
|
|
|||
| import static org.apache.hadoop.fs.azurebfs.constants.ConfigurationKeys.FS_AZURE_ACCOUNT_AUTH_TYPE_PROPERTY_NAME; | |||
There was a problem hiding this comment.
Since the CredPropsUtil is a common code path that will also be used by AwsVendedTokenProvider, so we definitely don't want to add the hadoop-azure when runing spark job on top of the aws s3.
That's why I removed all those hadoop-azure dependency, so that we won't mess up the cloud vendor 's runtime.
There was a problem hiding this comment.
The approache is simple, we just copy all those configure keys into the UCHadoopConf. Please see: https://github.com/unitycatalog/unitycatalog/pull/1176/files#diff-e53d40cc08a4f4120bad08ea094a311a2e36c689b044767bc02a956e78920293R23-R30
There was a problem hiding this comment.
That makes complete sense. thank you for catching that.
How do we make sure that we never break this in the future? today every test was passing using these imports. That means that we are compiling with azure libraries as a compile-time dependency... isnt it? if so, should we change it to not dependent on azure/aws/gcs libraries and everything should still compile and work?
There was a problem hiding this comment.
One simple thought, is adding an checkstyle enforcement rules in the checkstyle-dev.xml to explicitly forbidden any aws, azure, gcp filesystem imports in the production code base.
Signed-off-by: Zheng Hu <[email protected]>
Signed-off-by: Zheng Hu <[email protected]>
Signed-off-by: Zheng Hu <[email protected]>
b9b0cc1 to
1782e54
Compare
…1176) **PR Checklist** - [x] A description of the changes is added to the description of this PR. - [x] If there is a related issue, make sure it is linked to this PR. - [x] If you've fixed a bug or added code that should be tested, add tests! - [ ] If you've added or modified a feature, documentation in `docs` is updated **Description of changes** Related issue: unitycatalog#1175 --------- Signed-off-by: Zheng Hu <[email protected]>
**PR Checklist** - [x] A description of the changes is added to the description of this PR. - [x] If there is a related issue, make sure it is linked to this PR. - [x] If you've fixed a bug or added code that should be tested, add tests! - [ ] If you've added or modified a feature, documentation in `docs` is updated **Description of changes** Backport [PR change](#1176) of #1175 to branch-0.3 The whole backport progress is here: #1163 Signed-off-by: Zheng Hu <[email protected]>
PR Checklist
docsis updatedDescription of changes
Related issue: #1175