-
Couldn't load subscription status.
- Fork 831
feat: Add HDFS support #5245
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
feat: Add HDFS support #5245
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -161,6 +161,19 @@ impl fmt::Debug for AzblobStorageConfig { | |
| } | ||
| } | ||
|
|
||
| #[derive(Clone, PartialEq, Serialize, Deserialize, Default, Args, Debug)] | ||
| #[serde(default)] | ||
| pub struct HdfsConfig { | ||
| #[clap(long = "storage-hdfs-name-node", default_value_t)] | ||
| pub name_node: String, | ||
| /// # TODO(xuanwo) | ||
| /// | ||
| /// Clap doesn't allow us to use root directly. | ||
| #[clap(long = "storage-hdfs-root", default_value_t)] | ||
| #[serde(rename = "root")] | ||
| pub hdfs_root: String, | ||
| } | ||
|
|
||
| /// Storage config group. | ||
| #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Args)] | ||
| #[serde(default)] | ||
|
|
@@ -185,6 +198,10 @@ pub struct StorageConfig { | |
| // azure storage blob config. | ||
| #[clap(flatten)] | ||
| pub azblob: AzblobStorageConfig, | ||
|
|
||
| // hdfs storage backend config | ||
| #[clap(flatten)] | ||
| pub hdfs: HdfsConfig, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we don't add the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is another problem, we don't want unused config items explicitly: Is it possible to configure the item only we used, like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
If I tested this behavior locally: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's great, I am out, thank you. |
||
| } | ||
|
|
||
| impl Default for StorageConfig { | ||
|
|
@@ -196,6 +213,7 @@ impl Default for StorageConfig { | |
| fs: FsStorageConfig::default(), | ||
| s3: S3StorageConfig::default(), | ||
| azblob: AzblobStorageConfig::default(), | ||
| hdfs: HdfsConfig::default(), | ||
| } | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.