"code": "SubnetIsFull", "message": "Subnet databricks_Pub with address prefix (IP) does not have enough capacity for 1 IP addresses."

Singh, Vikram 0 Reputation points
2023-02-06T15:13:42.91+00:00

sometime jobs run fine in databricks but sometime failed with below error.

can you help me?

 Unexpected failure while waiting for the cluster (0131-113009-xtplhs02) to be ready.Cause Unexpected state for cluster (0131-113009-xtplhs02): SUBNET_EXHAUSTED_FAILURE(CLOUD_FAILURE): azure_error_code:SubnetIsFull,azure_error_message:No more address space to create NIC within injected virtual network. Details: {
  "error": {
    "code": "SubnetIsFull",
    "message": "Subnet databricks_Pub with address prefix (IP) does not have enough capacity for 1 IP addresses.",
    "details": []
Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,514 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bhargava-MSFT 31,261 Reputation points Microsoft Employee Moderator
    2023-02-10T02:38:46.6966667+00:00

    Hello @Singh Vikram ,

    Welcome to the MS Q&A platform.

    As per your error message, the subnet that you are trying to use for your cluster does not have enough capacity for the number of IP addresses that you are trying to assign. Meaning your subnet is too small

    To resolve this issue, you can try the following steps:

    Check the available IP addresses in the subnet you are trying to use. If the subnet does not have enough IP addresses, then you can try increasing the size of the subnet by adding more IP addresses.

    (or)

    You can use a different subnet that has more available IP addresses. or you can create a new Vnet and then use that for your cluster.

    Please refer to this document regarding deploying Azure databricks in Vnet : https://learn.microsoft.com/en-us/azure/databricks/administration-guide/cloud-configurations/azure/vnet-inject

    I hope this helps. Please let me know if you have any further questions.

    0 comments No comments

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.