pd-ctl region --jq=’.regions[] | {id: .id, peer_stores: [.peers[].store_id] | select(length as $total |map(if .==(1,3) then . else empty end)|length>=$total-length)}’
这个命令执行报错
[tidb@tidb-srv001 ~]$ pd-ctl region --jq=’.regions[] | {id: .id, peer_stores: [.peers[].store_id] | select(length as $total |map(if .==(1,3) then . else empty end)|length>=$total-length)}’
exec: “jq”: executable file not found in $PATH