Vikgeek Ritsuko created ZEPPELIN-5298:
-----------------------------------------
Summary: livy interpreter for sparkr variable display not working
Key: ZEPPELIN-5298
URL: https://issues.apache.org/jira/browse/ZEPPELIN-5298
Project: Zeppelin
Issue Type: Bug
Components: livy-interpreter
Affects Versions: 0.9.0, 0.8.0
Environment: * zeppelin 0.8.0
* R 3.5.2
Reporter: Vikgeek Ritsuko
Attachments: livy_spark_error_01.PNG, livy_spark_error_02.PNG,
livy_spark_error_03.PNG, livy_spark_error_04.PNG, livy_spark_error_05.PNG
Hi, I encounter a problem in livy-interpreter for sparkr, the output objet are
not display if we don't make a direct call with plot for example
{{
%livy.sparkr
library(ggplot2)
pres_rating <- data.frame(
rating = as.numeric(presidents),
year = as.numeric(floor(time(presidents))),
quarter = as.numeric(cycle(presidents))
)
p <- ggplot(pres_rating, aes(x=year, y=quarter, fill=rating))
p <- p + geom_raster()
p
}}
render png2 (image livy_spark_error_01.PNG)
but
{{
%livy.sparkr
library(ggplot2)
pres_rating <- data.frame(
rating = as.numeric(presidents),
year = as.numeric(floor(time(presidents))),
quarter = as.numeric(cycle(presidents))
)
p <- ggplot(pres_rating, aes(x=year, y=quarter, fill=rating))
p <- p + geom_raster()
plot(p)
}}
work fine (image livy_spark_error_02.PNG)
it is not that important but due to that impossible to render functions like
pairs or any plotly object
see livy_spark_error_03.PNG and livy_spark_error_05.PNG
--
This message was sent by Atlassian Jira
(v8.3.4#803005)