Troubleshooting Livy 3

Issue: Livy Server Not Visible in Ambari UI

Symptoms: Livy component doesn't appear when adding Spark service

Solution:

Bash
Copy

Issue: Port Conflict - "Address already in use"

Symptoms: Livy server fails to start with port binding error

Error Message:

Bash
Copy

Solution:

  1. Check what's using the port:
Bash
Copy
  1. Update Livy configuration:
Bash
Copy
  1. Restart Livy Server:
Bash
Copy

Issue: Wrong Spark Version Used

Symptoms: Livy sessions use incorrect Spark version

Solution:

  1. Verify SPARK_HOME in livy-env.sh:
Bash
Copy
  1. Update via Ambari:

    • Services → SPARK3_3_3_3 → Configs → Advanced livy3-3.3.3-env
    • Set correct SPARK_HOME path
    • Save and restart Livy
  2. Verify Spark version in session:

Bash
Copy

Issue: Session Creation Fails

Symptoms: REST API returns error when creating sessions

Common Errors and Solutions:

Error: "Session not found"

Bash
Copy

Error: "YARN queue not found"

Bash
Copy

Error: "Insufficient resources"

Bash
Copy

Issue: Sessions Timeout Unexpectedly

Symptoms: Livy sessions terminate before completion

Solution:

Increase session timeout:

Bash
Copy

Or disable timeout for long-running jobs:

Bash
Copy

Issue: Livy UI Shows Wrong Version

Symptoms: Livy REST API reports incorrect version

Solution:

  1. Verify correct binaries are being used:
Bash
Copy
  1. Check symlinks:
Bash
Copy
  1. Restart Livy with the correct LIVY_HOME:
Bash
Copy

Session Pooling

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
  Last updated