title: py4j.protocol.Py4JError: org.apache.spark.api.python.PythonUtils.getEncryptionEnabled does not exist in the JVM
body: <p>I am currently on JRE: 1.8.0_181, Python: 3.6.4, spark: 2.3.2</p>
  
  <p>I am trying to execute following code in Python:</p>
  
  <pre><code>from pyspark.sql import SparkSession
  
  spark = SparkSession.builder.appName('Basics').getOrCreate()
  </code></pre>
  
  <p>This fails with following error:</p>
  
  <blockquote>
    <p>spark = SparkSession.builder.appName('Basics').getOrCreate()
    Traceback (most recent call last):
      File "", line 1, in 
      File "C:\Tools\Anaconda3\lib\site-packages\pyspark\sql\session.py", line 173, in getOrCreate
        sc = SparkContext.getOrCreate(sparkConf)
      File "C:\Tools\Anaconda3\lib\site-packages\pyspark\context.py", line 349, in getOrCreate
        SparkContext(conf=conf or SparkConf())
      File "C:\Tools\Anaconda3\lib\site-packages\pyspark\context.py", line 118, in <strong>init</strong>
        conf, jsc, profiler_cls)
      File "C:\Tools\Anaconda3\lib\site-packages\pyspark\context.py", line 195, in _do_init
        self._encryption_enabled = self._jvm.PythonUtils.getEncryptionEnabled(self._jsc)
      File "C:\Tools\Anaconda3\lib\site-packages\py4j\java_gateway.py", line 1487, in <strong>getattr</strong>
        "{0}.{1} does not exist in the JVM".format(self._fqn, name))
    <strong>py4j.protocol.Py4JError: org.apache.spark.api.python.PythonUtils.getEncryptionEnabled does not exist in the JVM</strong></p>
  </blockquote>
  
  <p>Any one has any idea on what can be a potential issue here? </p>
  
  <p>Appreciate any help or feedback here. Thank you!</p>