Synapse error - Failed to create Livy session for executing notebook

Mathias A 11 Reputation points
2022-12-12T11:47:00.897+00:00

Hi,

Earlier today all our spark pools started to fail on different in environments because of a Livy session error. I have try to scale the spark pool up and create a new spark pool. However, it will still not start a spark session. See the error message under:

{
"errorCode": "6002",
"message": "Exception: Failed to create Livy session for executing notebook. LivySessionId: 66, Notebook: Raw2Clean.\n--> : Livy session has failed. Session state: Error. Session yields \"Failed\" result.",
"failureType": "UserError",
"target": "raw_to_clean",
"details": []
}

Does somebody have a solution to this problem or is it a general Azure problem in West Europe a the moment?

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,940 questions
{count} votes

5 answers

Sort by: Most helpful
  1. Vinodh247 21,961 Reputation points
    2023-06-24T11:52:38.06+00:00

    Hi,

    Thanks for reaching out to Microsoft Q&A.

    Glad it is a temporary issue and resolved by now. But at times when you try to run a new notebook there are chances that one of your previous notebooks is still attached to the session which might not allow you to run a new notebook session. As a first step you can go through the monitor tab to see if any running sessions and kill it forcefully if it's still running. Scaling up might not work, just detaching the session from the other notebook will work.

    Please Upvote and Accept as answer if the reply was helpful, this will be benefitting the other community members who go through the same issue.

    2 people found this answer helpful.
    0 comments No comments

  2. Mathias A 11 Reputation points
    2022-12-13T06:24:04.397+00:00

    Thanks, it was a temporary issue for a couple of hours, but it has been resolve now.

    I agree with that an overview of these Microsoft issues could be great for time saving in the future

    1 person found this answer helpful.

  3. Bhargava-MSFT 31,031 Reputation points Microsoft Employee
    2022-12-12T20:02:31.747+00:00

    Hello @Stephane Massat ,
    Thank you for your feedback.

    Hello @Mathias A ,
    As @Stephane Massat mentioned, this could be a temporary issue. Could you please confirm if this is resolved? Or if this is still happening, please let me know.

    Also, I have seen this error when there are not enough resources on the cluster to launch the sessions/applications. This error could occur if the total available cores cannot accommodate the existing session/application.


  4. Mike Kiser 1,536 Reputation points
    2023-06-23T15:30:31.0166667+00:00

    I just had the same error today!

    0 comments No comments

  5. Subedi, Manish 40 Reputation points
    2024-09-25T17:19:34.2533333+00:00

    We got the same issue.
    The reason was spark version 2.4 that we were using was deprecated in synapse.

    To solve the issue, have to create a new one with latest version

    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.