Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env perl
###########################################################################
# Hacky script that takes a ksck report as input and prints commands
# to remove unavailable replicas with the
# 'kudu remote_replica unsafe_change_config' tool. It's recommended to
# supply output from 'kudu cluster ksck <masters_rpc_endpoints> --verbose'
# to the script.
# This script should not be used without expert assistance.
###########################################################################
# Licensed to the Apache Software Foundation (ASF) under one