Post deployment, if hdfs-datanode pod crashes.

A workaround steps on a Kubernetes cluster:
  • Identify the hdfs datanode pod with the issue:
    kubectl get pods -A  -n tcsa-system | grep hdfs
  • Delete the corresponding pvc:
    kubectl get pvc -n tcsa-system | grep hdfs
    kubectl delete pvc -n tcsa-system <pvc_id> --wait=false
  • Delete the corresponding pv:
    kubectl get pv -n tcsa-system | grep hdfs
    kubectl delete pv -n tcsa-system <pv_id> --wait=false
  • Delete the failing pod:
    kubectl delete pod -n tcsa-system <pod_id>
    Note: The pv and pvc are recreated, when the pod is recreated.