You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@livy.apache.org by "Euijun (JIRA)" <ji...@apache.org> on 2019/01/03 08:00:03 UTC

[jira] [Created] (LIVY-546) Livy-SparkR Auth secret not provided in environment

Euijun created LIVY-546:
---------------------------

             Summary: Livy-SparkR Auth secret not provided in environment
                 Key: LIVY-546
                 URL: https://issues.apache.org/jira/browse/LIVY-546
             Project: Livy
          Issue Type: Bug
          Components: REPL
    Affects Versions: 0.5.0
            Reporter: Euijun


Hi expert,

I tried to use Livy to connect SparkR.

This is related to [https://stackoverflow.com/questions/53900995/livy-spark-r-issue]

 

Error message is,
{code:java}
Error in sparkR.sparkContext(master, appName, sparkHome, sparkConfigMap, : Auth secret not provided in environment.{code}
 

I think it caused by,

spark-2.3.1/R/pkg/R/sparkR.R
{code:java}
sparkR.sparkContext <- function(
...

    authSecret <- Sys.getenv("SPARKR_BACKEND_AUTH_SECRET")
    if (nchar(authSecret) == 0) {
      stop("Auth secret not provided in environment.")
    }

...
)
{code}
 

It seems Livy to need a configuration about connecting SparkR authentication secret key.

Best regard.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)