Post deployment, if hdfs-datanode pod crashes.

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