Uploaded image for project: 'Zeppelin'
  1. Zeppelin
  2. ZEPPELIN-5297

livy interpreter for sparkr variable display not working

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.8.0, 0.9.0
    • None
    • livy-interpreter
    • None
      • Zeppelin 0.8.0
      • R version 3.5.2 (2018-12-20)

       

    Description

      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

      Attachments

        1. livy_spark_error_01.PNG
          161 kB
          Vikgeek Ritsuko
        2. livy_spark_error_02.PNG
          212 kB
          Vikgeek Ritsuko
        3. livy_spark_error_03.PNG
          27 kB
          Vikgeek Ritsuko
        4. livy_spark_error_04.PNG
          515 kB
          Vikgeek Ritsuko
        5. livy_spark_error_05.PNG
          73 kB
          Vikgeek Ritsuko

        Activity

          People

            Unassigned Unassigned
            vikgeek Vikgeek Ritsuko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: