title: SparkException: Python worker failed to connect back when execute spark action
body: <p>When I try to execute this command line at pyspark</p>
  
  <pre><code>arquivo = sc.textFile("dataset_analise_sentimento.csv")
  </code></pre>
  
  <p>I got the following error message:</p>
  
  <pre><code>Py4JJavaError: An error occurred while calling z:
  org.apache.spark.api.python.PythonRDD.runJob.: 
  org.apache.spark.SparkException: Job aborted due to stage failure: 
  Task 0 in stage 0.0 failed 1 times, most recent failure:
  Lost task 0.0 in stage 0.0 (TID 0, localhost, executor driver):
  org.apache.spark.SparkException: Python worker failed to connect back.
  </code></pre>
  
  <p>I have tried the following steps:</p>
  
  <ul>
  <li>Check environment variables.</li>
  <li>Check Apache Spark installation on Windows 10 steps.</li>
  <li>Use different versions of Apache Spark (tried 2.4.3 / 2.4.2 / 2.3.4).</li>
  <li>Disable firewall windows and antivirus that I have installed.</li>
  <li>Tried to initialize the SparkContext manually with <code>sc = spark.sparkContext</code> (found this possible solution at <a href="https://stackoverflow.com/questions/53252181/python-worker-failed-to-connect-back">this question</a> here in Stackoverflow, didn´t work for me).</li>
  <li>Tried to change the value of <code>PYSPARK_DRIVER_PYTHON</code> from <code>jupyter</code> to <code>ipython</code>, as said in this <a href="https://medium.com/@GalarnykMichael/install-spark-on-windows-pyspark-4498a5d8d66c" rel="noreferrer">link</a>, no success.</li>
  </ul>
  
  <p>None of the steps above worked for me and I can´t find a solution.</p>
  
  <p>Actually I´m using the following versions:</p>
  
  <p>Python 3.7.3, Java JDK 11.0.6, Windows 10, Apache Spark 2.3.4</p>