You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2020/10/13 12:02:43 UTC
[GitHub] [hadoop-ozone] sodonnel opened a new pull request #1491: HDDS-4340. Add Operational State to the datanode list command
sodonnel opened a new pull request #1491:
URL: https://github.com/apache/hadoop-ozone/pull/1491
## What changes were proposed in this pull request?
The existing CLI command `ozone admin datanode list` provides output like:
```
bash-4.2$ ozone admin datanode list
Datanode: f2b2452a-bf7b-4c6d-b2d6-a0d9d219b21a (/default-rack/172.20.0.8/ozone_datanode_1.ozone_default/2 pipelines)
Related pipelines:
16561bc4-746a-4c79-b6f8-1c275b31e37d/THREE/RATIS/OPEN/Leader
4e45ff9c-478b-4ab8-a66c-7bfa98c8c632/ONE/RATIS/OPEN/Leader
Datanode: 57c7fd5f-e32c-4de9-a04a-89d8d4273431 (/default-rack/172.20.0.6/ozone_datanode_3.ozone_default/2 pipelines)
Related pipelines:
4b24bc61-28cf-471a-893c-a05cac273856/ONE/RATIS/OPEN/Leader
16561bc4-746a-4c79-b6f8-1c275b31e37d/THREE/RATIS/OPEN/Follower
```
We should extend this to show the "Operational State" of the node for decommission, giving output like this:
```
bash-4.2$ ozone admin datanode list
Datanode: cbd31d42-dc9d-4561-a800-2178fdb45866 (/default-rack/172.21.0.6/ozone_datanode_3.ozone_default/2 pipelines)
Operational State: IN_SERVICE
Related pipelines:
a18df8cd-e868-43c5-9bee-90f547763090/THREE/RATIS/OPEN/Follower
ec391cd9-cbc8-48f5-a569-9a161eab94ec/ONE/RATIS/OPEN/Leader
Datanode: ebfedb58-05e2-4e0d-a95d-98589197c138 (/default-rack/172.21.0.8/ozone_datanode_1.ozone_default/2 pipelines)
Operational State: IN_SERVICE
Related pipelines:
a18df8cd-e868-43c5-9bee-90f547763090/THREE/RATIS/OPEN/Leader
208952f5-f4d6-41b9-a487-3f7cf7ee8d8a/ONE/RATIS/OPEN/Leader
Datanode: 044e64b3-120b-46c1-8cf6-94402f9eace5 (/default-rack/172.21.0.7/ozone_datanode_2.ozone_default/2 pipelines)
Operational State: DECOMMISSIONING
Related pipelines:
a18df8cd-e868-43c5-9bee-90f547763090/THREE/RATIS/OPEN/Follower
9767ab14-303b-40da-bf4f-2e9588547509/ONE/RATIS/OPEN/Leader
```
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-4340
## How was this patch tested?
Verified the new output manually using a docker-compose cluster.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org
[GitHub] [hadoop-ozone] sodonnel merged pull request #1491: HDDS-4340. Add Operational State to the datanode list command
Posted by GitBox <gi...@apache.org>.
sodonnel merged pull request #1491:
URL: https://github.com/apache/hadoop-ozone/pull/1491
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org