Azure HDInsight Cluster Not getting Deleted

Sayak Banerjee 0 Reputation points
2025-03-03T23:24:43.18+00:00

Hi !!! I have a HDInsight Cluster which I am not able to delete. It is running for more than 30 mins. The name of the cluster is "sayakban-cc-spark-cluster". This is a high priority task as it is consuming my credits from my educational account. I am not able to force stop or delete it. It is stuck for more than 40 minutes now. Please help me.

Azure HDInsight
Azure HDInsight
An Azure managed cluster service for open-source analytics.
222 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Naga Venkata Sai Vagdevi Poojitha Returi 75 Reputation points Microsoft External Staff
    2025-03-03T23:58:05.9766667+00:00

    Hi Sayak Banerjee,

    Thanks for reaching out to Microsoft Q&A platform.

    Please check current/latest Status of cluster.

    First, head over to the Azure Portal, navigate to HDInsight, and locate your cluster named "sayakban-cc-spark-cluster." If it’s stuck in the "Deleting" state, let's move on to the next steps.

    Sometimes, dependencies might prevent the deletion. You can try deleting them manually. Go to the Resource Group where the cluster is deployed, then delete the Storage Account, Virtual Network, and any Public IP associated with the cluster. After removing these dependencies, retry deleting the cluster.

    If the manual deletion doesn’t work, you can use the Azure CLI to force delete the cluster. Run the following command in Azure Cloud Shell or your local terminal with Azure CLI installed:

     az hdinsight delete --name sayakban-cc-spark-cluster --resource-group <resource-group-name> --yes 
    

    Don't forget to replace <resource-group-name> with the actual resource group name of your cluster.

    If the cluster is still not budging, try stopping it before deletion using PowerShell. Use these commands:

    Stop-AzHDInsightCluster -ResourceGroupName "<resource-group-name>" -ClusterName "sayakban-cc-spark-cluster" -Force 
    
    Remove-AzHDInsightCluster -ResourceGroupName "<resource-group-name>" -ClusterName "sayakban-cc-spark-cluster" -Force 
    

    I hope these steps help you resolve the issue. If you have any questions or need further assistance, feel free to reach out.

    If you find the above information helpful, please do not forget to accept this answer.

     


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.