You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Background
At present, the balance service supports long process deployment, but does not support webserver services.
Implement functions
1.This PR mainly implements the basic capabilities of the webserver, and through the UI interface, it can view metrics such as the amount of data currently being migrated by the balancer process, how much data the cluster still needs to migrate to reach balanced state, etc.
2.Reuse the basic functions of HttpServer and HTML, support view conf, metrics, thread dump, etc.
Possible null pointer dereference of balancerHttpServer in org.apache.hadoop.hdfs.server.balancer.Balancer.doBalance(Collection, Collection, BalancerParameters, Configuration) on exception path Dereferenced at Balancer.java:balancerHttpServer in org.apache.hadoop.hdfs.server.balancer.Balancer.doBalance(Collection, Collection, BalancerParameters, Configuration) on exception path Dereferenced at Balancer.java:[line 938]
looks good, but this PR might have to wait until my PR is merged first. I'm in the process of upgrading from Jersey 1.x to Jersey 2. I’ve been a bit delayed lately due to work being busy.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of PR
JIRA:https://issues.apache.org/jira/browse/HDFS-17657
Background
At present, the balance service supports long process deployment, but does not support webserver services.
Implement functions
1.This PR mainly implements the basic capabilities of the webserver, and through the UI interface, it can view metrics such as the amount of data currently being migrated by the balancer process, how much data the cluster still needs to migrate to reach balanced state, etc.
2.Reuse the basic functions of HttpServer and HTML, support view conf, metrics, thread dump, etc.
Figures
How was this patch tested?
Add UT