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

sparkR.stop doesn't clean up .sparkRSQLsc in environment

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.1
    • 1.5.2, 1.6.0
    • SparkR
    • None

    Description

      Currently sparkR.stop removes relevant variables from .sparkREnv for SparkContext and backend. However it doesn't clean up .sparkRSQLsc and .sparkRHivesc.

      It results

      sc <- sparkR.init("local")
      sqlContext <- sparkRSQL.init(sc)
      sparkR.stop()
      sc <- sparkR.init("local")
      sqlContext <- sparkRSQL.init(sc)
      sqlContext
      

      producing

       sqlContext
      Error in callJMethod(x, "getClass") : 
        Invalid jobj 1. If SparkR was restarted, Spark operations need to be re-executed.
      

      Attachments

        Activity

          People

            saurfang Sen Fang
            saurfang Sen Fang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: