This repository has been archived by the owner on Jun 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 549
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Decouple hdfs storage from global storage, support config multiple fo…
…lders for hdfs (#1922) * decouple hdfs storage * fix * fix * update template files * update doc
- Loading branch information
Showing
8 changed files
with
88 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
## Hadoop data node section parser | ||
|
||
- [Default Configuration](#D_Config) | ||
- [How to Configure](#HT_Config) | ||
- [Generated Configuraiton](#G_Config) | ||
- [Data Table](#T_config) | ||
|
||
#### Default configuration <a name="D_Config"></a> | ||
|
||
[hadoop-data-node default configuration](hadoop-data-node.yaml) | ||
|
||
#### How to configure cluster section in service-configuraiton.yaml <a name="HT_Config"></a> | ||
|
||
All configurations in this section is optional. If you want to customized these value, you can configure it in service-configuration.yaml. | ||
|
||
- `storage_path` The hdfs storage folders, support comma-delimited list of directories. | ||
if isn't specified, will use `cluster.common.data-path/hdfs/data` | ||
|
||
|
||
|
||
#### Generated Configuration <a name="G_Config"></a> | ||
|
||
After parsing, object model will be a comma-delimited string, every substring is a directory: | ||
```yaml | ||
storage_path: /path/to/folder1,/path/to/folder2,... | ||
``` | ||
#### Table <a name="T_Config"></a> | ||
<table> | ||
<tr> | ||
<td>Data in Configuration File</td> | ||
<td>Data in Cluster Object Model</td> | ||
<td>Data in Jinja2 Template</td> | ||
<td>Data type</td> | ||
</tr> | ||
<tr> | ||
<td>hadoop-data-node.virtualClusters</td> | ||
<td>com["hadoop-data-node"]["storage_path"]</td> | ||
<td>cluster_cfg["hadoop-data-node"]["storage_path"]</td> | ||
<td>Str</td> | ||
</tr> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters