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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.1
    • Fix Version/s: 1.5.2, 1.6.0
    • Component/s: SparkR
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: