Skip to content

Instantly share code, notes, and snippets.

@wdberkeley
Created May 2, 2018 23:21
Show Gist options
  • Select an option

  • Save wdberkeley/536ce86335987f3792721fc7bc2e7024 to your computer and use it in GitHub Desktop.

Select an option

Save wdberkeley/536ce86335987f3792721fc7bc2e7024 to your computer and use it in GitHub Desktop.
ksck json one table
$ bin/kudu cluster ksck -ksck_format=json localhost:7051,localhost:7052,localhost:7053
{
"master_health": [
{
"uuid": "c78e5cede62f48bd9975cc27e0bd4870",
"address": "localhost:7051",
"health": "HEALTHY",
"status": "OK"
},
{
"uuid": "7b2c2970d9fa482c8ac7c06546b30323",
"address": "localhost:7052",
"health": "HEALTHY",
"status": "OK"
},
{
"uuid": "b46be6fce1284bbdbd509419a809ea00",
"address": "localhost:7053",
"health": "HEALTHY",
"status": "OK"
}
],
"master_consensus": {
"conflict": false,
"cstates": [
{
"id": "7b2c2970d9fa482c8ac7c06546b30323",
"committed": true,
"leader_uuid": "c78e5cede62f48bd9975cc27e0bd4870",
"term": 1,
"opid_index": -1,
"voter_uuids": [
"7b2c2970d9fa482c8ac7c06546b30323",
"b46be6fce1284bbdbd509419a809ea00",
"c78e5cede62f48bd9975cc27e0bd4870"
]
},
{
"id": "b46be6fce1284bbdbd509419a809ea00",
"committed": true,
"leader_uuid": "c78e5cede62f48bd9975cc27e0bd4870",
"term": 1,
"opid_index": -1,
"voter_uuids": [
"7b2c2970d9fa482c8ac7c06546b30323",
"b46be6fce1284bbdbd509419a809ea00",
"c78e5cede62f48bd9975cc27e0bd4870"
]
},
{
"id": "c78e5cede62f48bd9975cc27e0bd4870",
"committed": true,
"leader_uuid": "c78e5cede62f48bd9975cc27e0bd4870",
"term": 1,
"opid_index": -1,
"voter_uuids": [
"7b2c2970d9fa482c8ac7c06546b30323",
"b46be6fce1284bbdbd509419a809ea00",
"c78e5cede62f48bd9975cc27e0bd4870"
]
}
]
},
"tserver_health": [
{
"uuid": "a7f210d6c4da41519c8728e2be23a475",
"address": "127.0.0.1:7050",
"health": "HEALTHY",
"status": "OK"
},
{
"uuid": "f9317388b1124591832cee7b1dcd0bc6",
"address": "127.0.0.1:7250",
"health": "HEALTHY",
"status": "OK"
},
{
"uuid": "c3b7137823884d4185753ed2d21af109",
"address": "127.0.0.1:7150",
"health": "HEALTHY",
"status": "OK"
}
],
"tablets": [
{
"health": "HEALTHY",
"status": "Tablet c2fa2cb457ae43018f24e62d57bbc98a of table 'loadgen_auto_35ea29976a8741c7bc1839cccb7a6a81' is \u001B[32mhealthy\u001B[m.",
"master_cstate": {
"id": "master",
"committed": true,
"leader_uuid": "f9317388b1124591832cee7b1dcd0bc6",
"voter_uuids": [
"a7f210d6c4da41519c8728e2be23a475",
"c3b7137823884d4185753ed2d21af109",
"f9317388b1124591832cee7b1dcd0bc6"
]
},
"replicas": [
{
"ts_uuid": "c3b7137823884d4185753ed2d21af109",
"ts_address": "127.0.0.1:7150",
"is_leader": false,
"is_voter": true,
"ts_healthy": true,
"state": "RUNNING",
"data_state": "TABLET_DATA_READY",
"cstate": {
"id": "c3b7137823884d4185753ed2d21af109",
"committed": true,
"leader_uuid": "f9317388b1124591832cee7b1dcd0bc6",
"term": 1,
"opid_index": -1,
"voter_uuids": [
"a7f210d6c4da41519c8728e2be23a475",
"c3b7137823884d4185753ed2d21af109",
"f9317388b1124591832cee7b1dcd0bc6"
]
}
},
{
"ts_uuid": "f9317388b1124591832cee7b1dcd0bc6",
"ts_address": "127.0.0.1:7250",
"is_leader": true,
"is_voter": true,
"ts_healthy": true,
"state": "RUNNING",
"data_state": "TABLET_DATA_READY",
"cstate": {
"id": "f9317388b1124591832cee7b1dcd0bc6",
"committed": true,
"leader_uuid": "f9317388b1124591832cee7b1dcd0bc6",
"term": 1,
"opid_index": -1,
"voter_uuids": [
"a7f210d6c4da41519c8728e2be23a475",
"c3b7137823884d4185753ed2d21af109",
"f9317388b1124591832cee7b1dcd0bc6"
]
}
},
{
"ts_uuid": "a7f210d6c4da41519c8728e2be23a475",
"ts_address": "127.0.0.1:7050",
"is_leader": false,
"is_voter": true,
"ts_healthy": true,
"state": "RUNNING",
"data_state": "TABLET_DATA_READY",
"cstate": {
"id": "a7f210d6c4da41519c8728e2be23a475",
"committed": true,
"leader_uuid": "f9317388b1124591832cee7b1dcd0bc6",
"term": 1,
"opid_index": -1,
"voter_uuids": [
"a7f210d6c4da41519c8728e2be23a475",
"c3b7137823884d4185753ed2d21af109",
"f9317388b1124591832cee7b1dcd0bc6"
]
}
}
]
},
{
"health": "HEALTHY",
"status": "Tablet 5272dbf80c704862a42e850ce4091244 of table 'loadgen_auto_35ea29976a8741c7bc1839cccb7a6a81' is \u001B[32mhealthy\u001B[m.",
"master_cstate": {
"id": "master",
"committed": true,
"leader_uuid": "c3b7137823884d4185753ed2d21af109",
"voter_uuids": [
"a7f210d6c4da41519c8728e2be23a475",
"c3b7137823884d4185753ed2d21af109",
"f9317388b1124591832cee7b1dcd0bc6"
]
},
"replicas": [
{
"ts_uuid": "c3b7137823884d4185753ed2d21af109",
"ts_address": "127.0.0.1:7150",
"is_leader": true,
"is_voter": true,
"ts_healthy": true,
"state": "RUNNING",
"data_state": "TABLET_DATA_READY",
"cstate": {
"id": "c3b7137823884d4185753ed2d21af109",
"committed": true,
"leader_uuid": "c3b7137823884d4185753ed2d21af109",
"term": 1,
"opid_index": -1,
"voter_uuids": [
"a7f210d6c4da41519c8728e2be23a475",
"c3b7137823884d4185753ed2d21af109",
"f9317388b1124591832cee7b1dcd0bc6"
]
}
},
{
"ts_uuid": "f9317388b1124591832cee7b1dcd0bc6",
"ts_address": "127.0.0.1:7250",
"is_leader": false,
"is_voter": true,
"ts_healthy": true,
"state": "RUNNING",
"data_state": "TABLET_DATA_READY",
"cstate": {
"id": "f9317388b1124591832cee7b1dcd0bc6",
"committed": true,
"leader_uuid": "c3b7137823884d4185753ed2d21af109",
"term": 1,
"opid_index": -1,
"voter_uuids": [
"a7f210d6c4da41519c8728e2be23a475",
"c3b7137823884d4185753ed2d21af109",
"f9317388b1124591832cee7b1dcd0bc6"
]
}
},
{
"ts_uuid": "a7f210d6c4da41519c8728e2be23a475",
"ts_address": "127.0.0.1:7050",
"is_leader": false,
"is_voter": true,
"ts_healthy": true,
"state": "RUNNING",
"data_state": "TABLET_DATA_READY",
"cstate": {
"id": "a7f210d6c4da41519c8728e2be23a475",
"committed": true,
"leader_uuid": "c3b7137823884d4185753ed2d21af109",
"term": 1,
"opid_index": -1,
"voter_uuids": [
"a7f210d6c4da41519c8728e2be23a475",
"c3b7137823884d4185753ed2d21af109",
"f9317388b1124591832cee7b1dcd0bc6"
]
}
}
]
},
{
"health": "HEALTHY",
"status": "Tablet 3bdd63629ce14698a8da04255fa07e3f of table 'loadgen_auto_35ea29976a8741c7bc1839cccb7a6a81' is \u001B[32mhealthy\u001B[m.",
"master_cstate": {
"id": "master",
"committed": true,
"leader_uuid": "c3b7137823884d4185753ed2d21af109",
"voter_uuids": [
"a7f210d6c4da41519c8728e2be23a475",
"c3b7137823884d4185753ed2d21af109",
"f9317388b1124591832cee7b1dcd0bc6"
]
},
"replicas": [
{
"ts_uuid": "f9317388b1124591832cee7b1dcd0bc6",
"ts_address": "127.0.0.1:7250",
"is_leader": false,
"is_voter": true,
"ts_healthy": true,
"state": "RUNNING",
"data_state": "TABLET_DATA_READY",
"cstate": {
"id": "f9317388b1124591832cee7b1dcd0bc6",
"committed": true,
"leader_uuid": "c3b7137823884d4185753ed2d21af109",
"term": 1,
"opid_index": -1,
"voter_uuids": [
"a7f210d6c4da41519c8728e2be23a475",
"c3b7137823884d4185753ed2d21af109",
"f9317388b1124591832cee7b1dcd0bc6"
]
}
},
{
"ts_uuid": "c3b7137823884d4185753ed2d21af109",
"ts_address": "127.0.0.1:7150",
"is_leader": true,
"is_voter": true,
"ts_healthy": true,
"state": "RUNNING",
"data_state": "TABLET_DATA_READY",
"cstate": {
"id": "c3b7137823884d4185753ed2d21af109",
"committed": true,
"leader_uuid": "c3b7137823884d4185753ed2d21af109",
"term": 1,
"opid_index": -1,
"voter_uuids": [
"a7f210d6c4da41519c8728e2be23a475",
"c3b7137823884d4185753ed2d21af109",
"f9317388b1124591832cee7b1dcd0bc6"
]
}
},
{
"ts_uuid": "a7f210d6c4da41519c8728e2be23a475",
"ts_address": "127.0.0.1:7050",
"is_leader": false,
"is_voter": true,
"ts_healthy": true,
"state": "RUNNING",
"data_state": "TABLET_DATA_READY",
"cstate": {
"id": "a7f210d6c4da41519c8728e2be23a475",
"committed": true,
"leader_uuid": "c3b7137823884d4185753ed2d21af109",
"term": 1,
"opid_index": -1,
"voter_uuids": [
"a7f210d6c4da41519c8728e2be23a475",
"c3b7137823884d4185753ed2d21af109",
"f9317388b1124591832cee7b1dcd0bc6"
]
}
}
]
},
{
"health": "HEALTHY",
"status": "Tablet 0346277ccabe4a81a576e1934da4fe4d of table 'loadgen_auto_35ea29976a8741c7bc1839cccb7a6a81' is \u001B[32mhealthy\u001B[m.",
"master_cstate": {
"id": "master",
"committed": true,
"leader_uuid": "f9317388b1124591832cee7b1dcd0bc6",
"voter_uuids": [
"a7f210d6c4da41519c8728e2be23a475",
"c3b7137823884d4185753ed2d21af109",
"f9317388b1124591832cee7b1dcd0bc6"
]
},
"replicas": [
{
"ts_uuid": "f9317388b1124591832cee7b1dcd0bc6",
"ts_address": "127.0.0.1:7250",
"is_leader": true,
"is_voter": true,
"ts_healthy": true,
"state": "RUNNING",
"data_state": "TABLET_DATA_READY",
"cstate": {
"id": "f9317388b1124591832cee7b1dcd0bc6",
"committed": true,
"leader_uuid": "f9317388b1124591832cee7b1dcd0bc6",
"term": 1,
"opid_index": -1,
"voter_uuids": [
"a7f210d6c4da41519c8728e2be23a475",
"c3b7137823884d4185753ed2d21af109",
"f9317388b1124591832cee7b1dcd0bc6"
]
}
},
{
"ts_uuid": "c3b7137823884d4185753ed2d21af109",
"ts_address": "127.0.0.1:7150",
"is_leader": false,
"is_voter": true,
"ts_healthy": true,
"state": "RUNNING",
"data_state": "TABLET_DATA_READY",
"cstate": {
"id": "c3b7137823884d4185753ed2d21af109",
"committed": true,
"leader_uuid": "f9317388b1124591832cee7b1dcd0bc6",
"term": 1,
"opid_index": -1,
"voter_uuids": [
"a7f210d6c4da41519c8728e2be23a475",
"c3b7137823884d4185753ed2d21af109",
"f9317388b1124591832cee7b1dcd0bc6"
]
}
},
{
"ts_uuid": "a7f210d6c4da41519c8728e2be23a475",
"ts_address": "127.0.0.1:7050",
"is_leader": false,
"is_voter": true,
"ts_healthy": true,
"state": "RUNNING",
"data_state": "TABLET_DATA_READY",
"cstate": {
"id": "a7f210d6c4da41519c8728e2be23a475",
"committed": true,
"leader_uuid": "f9317388b1124591832cee7b1dcd0bc6",
"term": 1,
"opid_index": -1,
"voter_uuids": [
"a7f210d6c4da41519c8728e2be23a475",
"c3b7137823884d4185753ed2d21af109",
"f9317388b1124591832cee7b1dcd0bc6"
]
}
}
]
},
{
"health": "HEALTHY",
"status": "Tablet 7b7fd05d3e41411385a740f1d79cec57 of table 'loadgen_auto_35ea29976a8741c7bc1839cccb7a6a81' is \u001B[32mhealthy\u001B[m.",
"master_cstate": {
"id": "master",
"committed": true,
"leader_uuid": "c3b7137823884d4185753ed2d21af109",
"voter_uuids": [
"a7f210d6c4da41519c8728e2be23a475",
"c3b7137823884d4185753ed2d21af109",
"f9317388b1124591832cee7b1dcd0bc6"
]
},
"replicas": [
{
"ts_uuid": "c3b7137823884d4185753ed2d21af109",
"ts_address": "127.0.0.1:7150",
"is_leader": true,
"is_voter": true,
"ts_healthy": true,
"state": "RUNNING",
"data_state": "TABLET_DATA_READY",
"cstate": {
"id": "c3b7137823884d4185753ed2d21af109",
"committed": true,
"leader_uuid": "c3b7137823884d4185753ed2d21af109",
"term": 1,
"opid_index": -1,
"voter_uuids": [
"a7f210d6c4da41519c8728e2be23a475",
"c3b7137823884d4185753ed2d21af109",
"f9317388b1124591832cee7b1dcd0bc6"
]
}
},
{
"ts_uuid": "f9317388b1124591832cee7b1dcd0bc6",
"ts_address": "127.0.0.1:7250",
"is_leader": false,
"is_voter": true,
"ts_healthy": true,
"state": "RUNNING",
"data_state": "TABLET_DATA_READY",
"cstate": {
"id": "f9317388b1124591832cee7b1dcd0bc6",
"committed": true,
"leader_uuid": "c3b7137823884d4185753ed2d21af109",
"term": 1,
"opid_index": -1,
"voter_uuids": [
"a7f210d6c4da41519c8728e2be23a475",
"c3b7137823884d4185753ed2d21af109",
"f9317388b1124591832cee7b1dcd0bc6"
]
}
},
{
"ts_uuid": "a7f210d6c4da41519c8728e2be23a475",
"ts_address": "127.0.0.1:7050",
"is_leader": false,
"is_voter": true,
"ts_healthy": true,
"state": "RUNNING",
"data_state": "TABLET_DATA_READY",
"cstate": {
"id": "a7f210d6c4da41519c8728e2be23a475",
"committed": true,
"leader_uuid": "c3b7137823884d4185753ed2d21af109",
"term": 1,
"opid_index": -1,
"voter_uuids": [
"a7f210d6c4da41519c8728e2be23a475",
"c3b7137823884d4185753ed2d21af109",
"f9317388b1124591832cee7b1dcd0bc6"
]
}
}
]
},
{
"health": "HEALTHY",
"status": "Tablet 915e3d817130445a8189e4c9609ce674 of table 'loadgen_auto_35ea29976a8741c7bc1839cccb7a6a81' is \u001B[32mhealthy\u001B[m.",
"master_cstate": {
"id": "master",
"committed": true,
"leader_uuid": "c3b7137823884d4185753ed2d21af109",
"voter_uuids": [
"a7f210d6c4da41519c8728e2be23a475",
"c3b7137823884d4185753ed2d21af109",
"f9317388b1124591832cee7b1dcd0bc6"
]
},
"replicas": [
{
"ts_uuid": "c3b7137823884d4185753ed2d21af109",
"ts_address": "127.0.0.1:7150",
"is_leader": true,
"is_voter": true,
"ts_healthy": true,
"state": "RUNNING",
"data_state": "TABLET_DATA_READY",
"cstate": {
"id": "c3b7137823884d4185753ed2d21af109",
"committed": true,
"leader_uuid": "c3b7137823884d4185753ed2d21af109",
"term": 1,
"opid_index": -1,
"voter_uuids": [
"a7f210d6c4da41519c8728e2be23a475",
"c3b7137823884d4185753ed2d21af109",
"f9317388b1124591832cee7b1dcd0bc6"
]
}
},
{
"ts_uuid": "f9317388b1124591832cee7b1dcd0bc6",
"ts_address": "127.0.0.1:7250",
"is_leader": false,
"is_voter": true,
"ts_healthy": true,
"state": "RUNNING",
"data_state": "TABLET_DATA_READY",
"cstate": {
"id": "f9317388b1124591832cee7b1dcd0bc6",
"committed": true,
"leader_uuid": "c3b7137823884d4185753ed2d21af109",
"term": 1,
"opid_index": -1,
"voter_uuids": [
"a7f210d6c4da41519c8728e2be23a475",
"c3b7137823884d4185753ed2d21af109",
"f9317388b1124591832cee7b1dcd0bc6"
]
}
},
{
"ts_uuid": "a7f210d6c4da41519c8728e2be23a475",
"ts_address": "127.0.0.1:7050",
"is_leader": false,
"is_voter": true,
"ts_healthy": true,
"state": "RUNNING",
"data_state": "TABLET_DATA_READY",
"cstate": {
"id": "a7f210d6c4da41519c8728e2be23a475",
"committed": true,
"leader_uuid": "c3b7137823884d4185753ed2d21af109",
"term": 1,
"opid_index": -1,
"voter_uuids": [
"a7f210d6c4da41519c8728e2be23a475",
"c3b7137823884d4185753ed2d21af109",
"f9317388b1124591832cee7b1dcd0bc6"
]
}
}
]
},
{
"health": "HEALTHY",
"status": "Tablet a3379dc210934300a040d5ec4efd5749 of table 'loadgen_auto_35ea29976a8741c7bc1839cccb7a6a81' is \u001B[32mhealthy\u001B[m.",
"master_cstate": {
"id": "master",
"committed": true,
"leader_uuid": "c3b7137823884d4185753ed2d21af109",
"voter_uuids": [
"a7f210d6c4da41519c8728e2be23a475",
"c3b7137823884d4185753ed2d21af109",
"f9317388b1124591832cee7b1dcd0bc6"
]
},
"replicas": [
{
"ts_uuid": "c3b7137823884d4185753ed2d21af109",
"ts_address": "127.0.0.1:7150",
"is_leader": true,
"is_voter": true,
"ts_healthy": true,
"state": "RUNNING",
"data_state": "TABLET_DATA_READY",
"cstate": {
"id": "c3b7137823884d4185753ed2d21af109",
"committed": true,
"leader_uuid": "c3b7137823884d4185753ed2d21af109",
"term": 1,
"opid_index": -1,
"voter_uuids": [
"a7f210d6c4da41519c8728e2be23a475",
"c3b7137823884d4185753ed2d21af109",
"f9317388b1124591832cee7b1dcd0bc6"
]
}
},
{
"ts_uuid": "f9317388b1124591832cee7b1dcd0bc6",
"ts_address": "127.0.0.1:7250",
"is_leader": false,
"is_voter": true,
"ts_healthy": true,
"state": "RUNNING",
"data_state": "TABLET_DATA_READY",
"cstate": {
"id": "f9317388b1124591832cee7b1dcd0bc6",
"committed": true,
"leader_uuid": "c3b7137823884d4185753ed2d21af109",
"term": 1,
"opid_index": -1,
"voter_uuids": [
"a7f210d6c4da41519c8728e2be23a475",
"c3b7137823884d4185753ed2d21af109",
"f9317388b1124591832cee7b1dcd0bc6"
]
}
},
{
"ts_uuid": "a7f210d6c4da41519c8728e2be23a475",
"ts_address": "127.0.0.1:7050",
"is_leader": false,
"is_voter": true,
"ts_healthy": true,
"state": "RUNNING",
"data_state": "TABLET_DATA_READY",
"cstate": {
"id": "a7f210d6c4da41519c8728e2be23a475",
"committed": true,
"leader_uuid": "c3b7137823884d4185753ed2d21af109",
"term": 1,
"opid_index": -1,
"voter_uuids": [
"a7f210d6c4da41519c8728e2be23a475",
"c3b7137823884d4185753ed2d21af109",
"f9317388b1124591832cee7b1dcd0bc6"
]
}
}
]
},
{
"health": "HEALTHY",
"status": "Tablet 7416327c243a4713a0a100aeb3b8dd9f of table 'loadgen_auto_35ea29976a8741c7bc1839cccb7a6a81' is \u001B[32mhealthy\u001B[m.",
"master_cstate": {
"id": "master",
"committed": true,
"leader_uuid": "f9317388b1124591832cee7b1dcd0bc6",
"voter_uuids": [
"a7f210d6c4da41519c8728e2be23a475",
"c3b7137823884d4185753ed2d21af109",
"f9317388b1124591832cee7b1dcd0bc6"
]
},
"replicas": [
{
"ts_uuid": "c3b7137823884d4185753ed2d21af109",
"ts_address": "127.0.0.1:7150",
"is_leader": false,
"is_voter": true,
"ts_healthy": true,
"state": "RUNNING",
"data_state": "TABLET_DATA_READY",
"cstate": {
"id": "c3b7137823884d4185753ed2d21af109",
"committed": true,
"leader_uuid": "f9317388b1124591832cee7b1dcd0bc6",
"term": 1,
"opid_index": -1,
"voter_uuids": [
"a7f210d6c4da41519c8728e2be23a475",
"c3b7137823884d4185753ed2d21af109",
"f9317388b1124591832cee7b1dcd0bc6"
]
}
},
{
"ts_uuid": "f9317388b1124591832cee7b1dcd0bc6",
"ts_address": "127.0.0.1:7250",
"is_leader": true,
"is_voter": true,
"ts_healthy": true,
"state": "RUNNING",
"data_state": "TABLET_DATA_READY",
"cstate": {
"id": "f9317388b1124591832cee7b1dcd0bc6",
"committed": true,
"leader_uuid": "f9317388b1124591832cee7b1dcd0bc6",
"term": 1,
"opid_index": -1,
"voter_uuids": [
"a7f210d6c4da41519c8728e2be23a475",
"c3b7137823884d4185753ed2d21af109",
"f9317388b1124591832cee7b1dcd0bc6"
]
}
},
{
"ts_uuid": "a7f210d6c4da41519c8728e2be23a475",
"ts_address": "127.0.0.1:7050",
"is_leader": false,
"is_voter": true,
"ts_healthy": true,
"state": "RUNNING",
"data_state": "TABLET_DATA_READY",
"cstate": {
"id": "a7f210d6c4da41519c8728e2be23a475",
"committed": true,
"leader_uuid": "f9317388b1124591832cee7b1dcd0bc6",
"term": 1,
"opid_index": -1,
"voter_uuids": [
"a7f210d6c4da41519c8728e2be23a475",
"c3b7137823884d4185753ed2d21af109",
"f9317388b1124591832cee7b1dcd0bc6"
]
}
}
]
}
],
"tables": [
{
"name": "loadgen_auto_35ea29976a8741c7bc1839cccb7a6a81",
"health": "HEALTHY",
"replication_factor": 3,
"total_tablets": 8,
"healthy_tablets": 8,
"recovering_tablets": 0,
"underreplicated_tablets": 0,
"unavailable_tablets": 0,
"consensus_mismatch_tablets": 0
}
],
"total_counts": {
"masters": 3,
"tservers": 3,
"tables": 1,
"tablets": 8,
"replicas": 24
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment