Scenario: Apache Spark Streaming application stops after executing for 24 days in Azure HDInsight

This article describes troubleshooting steps and possible resolutions for issues when using Apache Spark components in Azure HDInsight clusters.


An Apache Spark Streaming application stops after executing for 24 days and there are no errors in the log files.


The livy.server.session.timeout value controls how long Apache Livy should wait for a session to complete. Once the session length reaches the session.timeout value, the Livy session and the application are automatically killed.


For long running jobs, increase the value of livy.server.session.timeout using the Ambari UI. You can access the Livy configuration from the Ambari UI using the URL https://<yourclustername>

Replace <yourclustername> with the name of your HDInsight cluster as shown in the portal.

Next steps

If you didn't see your problem or are unable to solve your issue, visit one of the following channels for more support:

  • Get answers from Azure experts through Azure Community Support.

  • Connect with @AzureSupport - the official Microsoft Azure account for improving customer experience. Connecting the Azure community to the right resources: answers, support, and experts.

  • If you need more help, you can submit a support request from the Azure portal. Select Support from the menu bar or open the Help + support hub. For more detailed information, review How to create an Azure support request. Access to Subscription Management and billing support is included with your Microsoft Azure subscription, and Technical Support is provided through one of the Azure Support Plans.