-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
[feature](Vault) Support alter hdfs storage vault and alter vault's name #38685
Conversation
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
clang-tidy review says "All clean, LGTM! 👍" |
9eabcc4
to
1bbc772
Compare
clang-tidy review says "All clean, LGTM! 👍" |
3 similar comments
clang-tidy review says "All clean, LGTM! 👍" |
clang-tidy review says "All clean, LGTM! 👍" |
clang-tidy review says "All clean, LGTM! 👍" |
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
TPC-H: Total hot run time: 42019 ms
|
TPC-DS: Total hot run time: 169321 ms
|
ClickBench: Total hot run time: 30.31 s
|
@@ -56,6 +58,11 @@ public class HdfsStorageVault extends StorageVault { | |||
public static final String HDFS_PREFIX = "hdfs:"; | |||
public static final String HDFS_FILE_PREFIX = "hdfs://"; | |||
|
|||
public static final HashSet<String> ALTER_CHECK_PROPERTIES = new HashSet<>(Arrays.asList( |
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.
for hdfs, only name and passwd can be altered
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.
What if the users tried to add more properties?
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.
forbid
comment why forbid
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.
clang-tidy made some suggestions
pass path format case ok resolve comment add ut
2b6553a
to
b68cba9
Compare
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.
clang-tidy made some suggestions
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.
clang-tidy made some suggestions
run buildall |
TPC-H: Total hot run time: 39858 ms
|
TPC-DS: Total hot run time: 201616 ms
|
ClickBench: Total hot run time: 30.34 s
|
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
run buildall |
TPC-H: Total hot run time: 39919 ms
|
TPC-DS: Total hot run time: 189400 ms
|
ClickBench: Total hot run time: 31.01 s
|
PR approved by at least one committer and no changes requested. |
…ame (apache#38685) Previously only s3 vault can be altered. This pr adds support of hdfs storage vault. And this pr also supports to alter vault's name. usage example ``` ALTER STORAGE VAULT alter_s3_vault PROPERTIES ( "type"="S3", "s3.access_key" = "new_ak", -- change ak "s3.secrete_key" = "new_ak", -- change sk ); ALTER STORAGE VAULT alter_hdfs_vault PROPERTIES ( "type"="hdfs", "VAULT_NAME" = "alter_hdfs_vault_new_name", -- change vault name "hadoop.username" = "hdfs" -- change user name ); ```
…ame (#38685) Previously only s3 vault can be altered. This pr adds support of hdfs storage vault. And this pr also supports to alter vault's name. usage example ``` ALTER STORAGE VAULT alter_s3_vault PROPERTIES ( "type"="S3", "s3.access_key" = "new_ak", -- change ak "s3.secrete_key" = "new_ak", -- change sk ); ALTER STORAGE VAULT alter_hdfs_vault PROPERTIES ( "type"="hdfs", "VAULT_NAME" = "alter_hdfs_vault_new_name", -- change vault name "hadoop.username" = "hdfs" -- change user name ); ```
Previously only s3 vault can be altered. This pr adds support of hdfs storage vault. And this pr also supports to alter vault's name.
usage example