Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-23780

Failed to use googleVis library with new SparkR

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.1, 2.3.0
    • Fix Version/s: 2.3.1, 2.4.0
    • Component/s: SparkR
    • Labels:

      Description

      I've tried to use googleVis library with Spark 2.2.1, and faced with problem.

      Steps to reproduce:

      1. Install R with googleVis library.
      2. Run SparkR:
        sparkR --master yarn --deploy-mode client
        
      3. Run code that uses googleVis:
        library(googleVis)
        df=data.frame(country=c("US", "GB", "BR"), 
                      val1=c(10,13,14), 
                      val2=c(23,12,32))
        Bar <- gvisBarChart(df)
        cat("%html ", Bar$html$chart)
        

      Than I got following error message:

      Error : .onLoad failed in loadNamespace() for 'googleVis', details:
        call: rematchDefinition(definition, fdef, mnames, fnames, signature)
        error: methods can add arguments to the generic 'toJSON' only if '...' is an argument to the generic
      Error : package or namespace load failed for 'googleVis'
      

      But expected result is to get some HTML code output, as it was with Spark 2.1.0.

        Attachments

          Activity

            People

            • Assignee:
              felixcheung Felix Cheung
              Reporter:
              idzikovsky Ivan Dzikovsky
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: