Hello Yash Samir,
The error message "InvalidHttpRequestToLivy: HTTP status code: 400" in Azure Synapse Analytics indicates a Bad Request error when communicating with the endpoint .
This issue can be either of the following:
Resource Constraints: Insufficient resources in your Synapse workspace can lead to failed Spark job submissions.
Solution: Monitor your workspace's resource utilization, including CPU, memory, and I/O. If resources are low, consider scaling up or optimizing existing workloads.
Quota Limitations: Exceeding the allocated vCore quota for your workspace can prevent new Spark jobs from initiating.
Solution: Request a quota increase through the Azure portal:
Navigate to Help + support > New support request.
Select Issue type: Service and subscription limits (quotas).
Choose Quota type: Azure Synapse Analytics.
Specify the required increase in vCores for your workspace.
Network Configurations: Misconfigurations in network settings, such as firewalls or virtual networks, can obstruct communication with the Livy service.
Solution: Verify that your network configurations allow outbound traffic to the necessary endpoints. Adjust firewall rules or network security groups as needed. I hope this resolves your issue.
Please try it out and let me know if you have any other questions. Also, don't forget to accept the answer if this was helpful.