apache / apache/livy

Error[Failed to launch livy session, session status is dead] on connecting to spark through livy using R

Open
#379 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Scala
Stars
963
Forks
625
Avg merge
6d 21h
Merged PRs (30d)
6

Description

I am using sparklyr version [1.7.8](https://github.com/sparklyr/sparklyr)
and latest livy version in master branch [incubator-livy](https://github.com/apache/incubator-livy)

On connecting to spark through livy using R

> library(sparklyr)
> sc <- spark_connect(master = "local", method = "livy", version ="3.1.1")

Command is throwing an error:

> Error in livy_connection(master, config, app_name, version, hadoop_version, :
> Failed to launch livy session, session status is dead

Could anyone please help me understand what could the issue be.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the sparklyr 1.7.8 connection command against Livy master with Spark 3.1.1, then trace why the Livy session reaches the dead state. Done means identifying the configuration or compatibility cause and confirming a successful R connection to Spark.

Written by the indexing model from the issue text.

Assessment

Tech stack
r, scala, spark
Domain
api, backend, distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.