title: Py4J error when creating a spark dataframe using pyspark
body: <p>I have installed pyspark with python 3.6 and I am using jupyter notebook to initialize a spark session.</p>
  
  <pre><code>from pyspark.sql import SparkSession
  spark = SparkSession.builder.appName("test").enableHieSupport.getOrCreate()
  </code></pre>
  
  <p>which runs without any errors</p>
  
  <p>But I write,</p>
  
  <pre><code>df = spark.range(10)
  df.show()
  </code></pre>
  
  <p>It throws me an error  --></p>
  
  <pre><code>Py4JError: An error occurred while calling o54.showString. Trace:
  py4j.Py4JException: Method showString([class java.lang.Integer, class java.lang.Integer, class java.lang.Boolean]) does not exist
      at py4j.reflection.ReflectionEngine.getMethod(ReflectionEngine.java:318)
      at py4j.reflection.ReflectionEngine.getMethod(ReflectionEngine.java:326)
      at py4j.Gateway.invoke(Gateway.java:272)
      at py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132)
      at py4j.commands.CallCommand.execute(CallCommand.java:79)
      at py4j.GatewayConnection.run(GatewayConnection.java:214)
      at java.lang.Thread.run(Thread.java:745)
  </code></pre>
  
  <p>I dont know why I am facing this issue.</p>
  
  <p>If I do,</p>
  
  <pre><code>from pyspark import SparkContext
  sc = SparkContext()
  print(sc.version)
  
  '2.1.0'
  </code></pre>