Troubleshooting Livy 3
Issue: Livy Server Not Visible in Ambari UI
Symptoms: Livy component doesn't appear when adding Spark service
Solution:
Issue: Port Conflict - "Address already in use"
Symptoms: Livy server fails to start with port binding error
Error Message:
Solution:
Check what's using the port:
Update Livy configuration:
Restart Livy Server:
Issue: Wrong Spark Version Used
Symptoms: Livy sessions use incorrect Spark version
Solution:
Verify SPARK_HOME in livy-env.sh:
Update via Ambari:
Services → SPARK3_3_3_3 → Configs → Advanced livy3-3.3.3-env
Set correct SPARK_HOME path
Save and restart Livy
Verify Spark version in session:
Issue: Session Creation Fails
Symptoms: REST API returns error when creating sessions
Common Errors and Solutions:
Error: "Session not found"
Error: "YARN queue not found"
Error: "Insufficient resources"
Issue: Sessions Timeout Unexpectedly
Symptoms: Livy sessions terminate before completion
Solution:
Increase session timeout:
Or disable timeout for long-running jobs:
Issue: Livy UI Shows Wrong Version
Symptoms: Livy REST API reports incorrect version
Solution:
Verify correct binaries are being used:
Check symlinks:
Restart Livy with the correct LIVY_HOME: