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

Issue with Spark Context Initialization i.e. SparkSession.builder.getOrCreate()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 2.4.5, 3.0.0
    • None
    • PySpark
    • None
    • Important

    Description

      Issue : 

      I am trying to initialize spark context using below code : 

       

      from pyspark.sql import SparkSession
      spark = SparkSession.builder.getOrCreate()
      import pandas as pd
      sc = spark.sparkContext

       

      At getOrCreate() step , code is going to infinite loop and never respond back  either with exception or timeout. 

       

      On execution if i  check on VS Terminal or Anaconda cmd prompot - below statement is getting displayed : 

      [I 19:13:47.973 NotebookApp] Saving file at /LearnPython/Assignment3/NLP.ipynb
      The filename, directory name, or volume label syntax is incorrect.

       

       

      Note : This used to work fine till a month back - not sure what chnaged, it stopped working from yesterday. 

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            rohithbhattaram@gmail.com Rohith Bhattaram
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 20h
                20h
                Remaining:
                Remaining Estimate - 20h
                20h
                Logged:
                Time Spent - Not Specified
                Not Specified