I'm able to connect to non-Kerberized spark cluster through Livy service without problems from a remote Rstudio desktop (windows).
However, if the Kerberos security is enabled, the connection fails:
library(sparklyr)
sc <- spark_connect("http://host:8998", method = "livy")
returning
Error in livy_validate_http_response("Failed to create livy session", :
Livy operation is unauthorized. Try spark_connect with config = livy_config()
using sparklyr_0.5.6-9002
and MIT Kerberos for Windows for the authentication.
On the other hand, from within the cluster (i.e. through curl
) the connection is successful.
What am I doing wrong? What additional settings are required for such connection?
The livy_config(..., username, password)
config seems to be forming only a Authorization: Basic ...
header, though here I'd suspect a Negotiate
or Kerberos
(?) should be required instead.
Are there any other possible configurations I'm missing?
NB: same error is returned from RStudio Server (web) after kinit
'ing from the shell with authorized user.