Skip to content

Commit

Permalink
HDFS-17064. Document the usage of the new Balancer "sortTopNodes" and…
Browse files Browse the repository at this point in the history
… "hotBlockTimeInterval" parameter (apache#5794). Contributed by Haiyang Hu.

Reviewed-by: Shuyan Zhang <[email protected]>
Reviewed-by: He Xiaoqiao <[email protected]>
Signed-off-by: Ayush Saxena <[email protected]>
  • Loading branch information
haiyang1987 authored and jiajunmao committed Feb 6, 2024
1 parent b57d35f commit 2de3133
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,9 @@ public class Balancer {
+ "on over-utilized machines."
+ "\n\t[-asService]\tRun as a long running service."
+ "\n\t[-sortTopNodes]"
+ "\n\t[-hotBlockTimeInterval]\tprefer to move cold blocks."
+ "\tSort datanodes based on the utilization so "
+ "that highly utilized datanodes get scheduled first.";
+ "that highly utilized datanodes get scheduled first."
+ "\n\t[-hotBlockTimeInterval]\tprefer to move cold blocks.";

@VisibleForTesting
private static volatile boolean serviceRunning = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,8 @@ Usage:
[-idleiterations <idleiterations>]
[-runDuringUpgrade]
[-asService]
[-sortTopNodes]
[-hotBlockTimeInterval <specified time interval>]

| COMMAND\_OPTION | Description |
|:---- |:---- |
Expand All @@ -304,6 +306,7 @@ Usage:
| `-idleiterations` \<iterations\> | Maximum number of idle iterations before exit. This overwrites the default idleiterations(5). |
| `-runDuringUpgrade` | Whether to run the balancer during an ongoing HDFS upgrade. This is usually not desired since it will not affect used space on over-utilized machines. |
| `-asService` | Run Balancer as a long running service. |
| `-sortTopNodes` | Sort datanodes based on the utilization so that highly utilized datanodes get scheduled first. |
| `-hotBlockTimeInterval` | Prefer moving cold blocks i.e blocks associated with files accessed or modified before the specified time interval. |
| `-h`\|`--help` | Display the tool usage and help information and exit. |

Expand Down

0 comments on commit 2de3133

Please sign in to comment.