<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic I created a data frame but was not able to see the data in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/i-created-a-data-frame-but-was-not-able-to-see-the-data/m-p/14720#M9169</link>
    <description>&lt;P&gt;&lt;B&gt;Code to create a data frame:&lt;/B&gt;&lt;/P&gt;&lt;P&gt;from pyspark.sql import SparkSession&lt;/P&gt;&lt;P&gt;spark=SparkSession.builder.appName("oracle_queries").master("local[4]")\&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;.config("spark.sql.warehouse.dir", "C:\\softwares\\git\\pyspark\\hive").getOrCreate()&lt;/P&gt;&lt;P&gt;from pyspark.sql.functions import current_date,year&lt;/P&gt;&lt;P&gt;from pyspark.sql.types import IntegerType,StructType,StructField,StringType&lt;/P&gt;&lt;P&gt;from datetime import datetime, date&lt;/P&gt;&lt;P&gt;from pyspark import SparkContext&lt;/P&gt;&lt;P&gt;sc=SparkContext.getOrCreate()&lt;/P&gt;&lt;P&gt;rdd=sc.parallelize([('ram','chi'),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;('anil','ind')])&lt;/P&gt;&lt;P&gt;df=spark.createDataFrame(rdd,schema=StructType([StructField("name",StringType(),True),StructField("loc",StringType(),True)]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying to see the data but face below error:&lt;/P&gt;&lt;P&gt;df.show()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;U&gt;Error:&lt;/U&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;---------------------------------------------------------------------------&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Py4JJavaError&lt;/B&gt;                             Traceback (most recent call last)&lt;/P&gt;&lt;P&gt;&lt;B&gt;&amp;lt;ipython-input-2-1a6ce2362cd4&amp;gt;&lt;/B&gt; in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;----&amp;gt; 1 &lt;/B&gt;df&lt;B&gt;.&lt;/B&gt;show&lt;B&gt;()&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;c:\program files (x86)\python38-32\lib\site-packages\pyspark\sql\dataframe.py&lt;/B&gt; in show&lt;B&gt;(self, n, truncate, vertical)&lt;/B&gt;&lt;/P&gt;&lt;P&gt;    438         """&lt;/P&gt;&lt;P&gt;    439         &lt;B&gt;if&lt;/B&gt; isinstance&lt;B&gt;(&lt;/B&gt;truncate&lt;B&gt;,&lt;/B&gt; bool&lt;B&gt;)&lt;/B&gt; &lt;B&gt;and&lt;/B&gt; truncate&lt;B&gt;:&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;--&amp;gt; 440             &lt;/B&gt;print&lt;B&gt;(&lt;/B&gt;self&lt;B&gt;.&lt;/B&gt;_jdf&lt;B&gt;.&lt;/B&gt;showString&lt;B&gt;(&lt;/B&gt;n&lt;B&gt;,&lt;/B&gt; &lt;B&gt;20,&lt;/B&gt; vertical&lt;B&gt;))&lt;/B&gt;&lt;/P&gt;&lt;P&gt;    441         &lt;B&gt;else:&lt;/B&gt;&lt;/P&gt;&lt;P&gt;    442             print&lt;B&gt;(&lt;/B&gt;self&lt;B&gt;.&lt;/B&gt;_jdf&lt;B&gt;.&lt;/B&gt;showString&lt;B&gt;(&lt;/B&gt;n&lt;B&gt;,&lt;/B&gt; int&lt;B&gt;(&lt;/B&gt;truncate&lt;B&gt;),&lt;/B&gt; vertical&lt;B&gt;))&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;c:\program files (x86)\python38-32\lib\site-packages\py4j\java_gateway.py&lt;/B&gt; in __call__&lt;B&gt;(self, *args)&lt;/B&gt;&lt;/P&gt;&lt;P&gt;   1302 &lt;/P&gt;&lt;P&gt;   1303         answer &lt;B&gt;=&lt;/B&gt; self&lt;B&gt;.&lt;/B&gt;gateway_client&lt;B&gt;.&lt;/B&gt;send_command&lt;B&gt;(&lt;/B&gt;command&lt;B&gt;)&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;-&amp;gt; 1304         return_value = get_return_value(&lt;/B&gt;&lt;/P&gt;&lt;P&gt;   1305             answer, self.gateway_client, self.target_id, self.name)&lt;/P&gt;&lt;P&gt;   1306 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;c:\program files (x86)\python38-32\lib\site-packages\pyspark\sql\utils.py&lt;/B&gt; in deco&lt;B&gt;(*a, **kw)&lt;/B&gt;&lt;/P&gt;&lt;P&gt;    126     &lt;B&gt;def&lt;/B&gt; deco&lt;B&gt;(*&lt;/B&gt;a&lt;B&gt;,&lt;/B&gt; &lt;B&gt;**&lt;/B&gt;kw&lt;B&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;    127         &lt;B&gt;try:&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;--&amp;gt; 128             return&lt;/B&gt; f&lt;B&gt;(*&lt;/B&gt;a&lt;B&gt;,&lt;/B&gt; &lt;B&gt;**&lt;/B&gt;kw&lt;B&gt;)&lt;/B&gt;&lt;/P&gt;&lt;P&gt;    129         &lt;B&gt;except&lt;/B&gt; py4j&lt;B&gt;.&lt;/B&gt;protocol&lt;B&gt;.&lt;/B&gt;Py4JJavaError &lt;B&gt;as&lt;/B&gt; e&lt;B&gt;:&lt;/B&gt;&lt;/P&gt;&lt;P&gt;    130             converted &lt;B&gt;=&lt;/B&gt; convert_exception&lt;B&gt;(&lt;/B&gt;e&lt;B&gt;.&lt;/B&gt;java_exception&lt;B&gt;)&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;c:\program files (x86)\python38-32\lib\site-packages\py4j\protocol.py&lt;/B&gt; in get_return_value&lt;B&gt;(answer, gateway_client, target_id, name)&lt;/B&gt;&lt;/P&gt;&lt;P&gt;    324             value &lt;B&gt;=&lt;/B&gt; OUTPUT_CONVERTER&lt;B&gt;[&lt;/B&gt;type&lt;B&gt;](&lt;/B&gt;answer&lt;B&gt;[2:],&lt;/B&gt; gateway_client&lt;B&gt;)&lt;/B&gt;&lt;/P&gt;&lt;P&gt;    325             &lt;B&gt;if&lt;/B&gt; answer&lt;B&gt;[1]&lt;/B&gt; &lt;B&gt;==&lt;/B&gt; REFERENCE_TYPE&lt;B&gt;:&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;--&amp;gt; 326                 raise Py4JJavaError(&lt;/B&gt;&lt;/P&gt;&lt;P&gt;    327                     &lt;B&gt;"An error occurred while calling {0}{1}{2}.\n".&lt;/B&gt;&lt;/P&gt;&lt;P&gt;    328                     format(target_id, ".", name), value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Py4JJavaError&lt;/B&gt;: An error occurred while calling o48.showString.&lt;/P&gt;&lt;P&gt;: 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) (DESKTOP-N3C4AUC.attlocal.net executor driver): org.apache.spark.api.python.PythonException: Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;  File "C:\pyspark\spark-3.3.1-bin-hadoop3\python\lib\pyspark.zip\pyspark\worker.py", line 668, in main&lt;/P&gt;&lt;P&gt;ore&lt;/P&gt;</description>
    <pubDate>Sun, 25 Dec 2022 01:02:21 GMT</pubDate>
    <dc:creator>Ram443</dc:creator>
    <dc:date>2022-12-25T01:02:21Z</dc:date>
    <item>
      <title>I created a data frame but was not able to see the data</title>
      <link>https://community.databricks.com/t5/data-engineering/i-created-a-data-frame-but-was-not-able-to-see-the-data/m-p/14720#M9169</link>
      <description>&lt;P&gt;&lt;B&gt;Code to create a data frame:&lt;/B&gt;&lt;/P&gt;&lt;P&gt;from pyspark.sql import SparkSession&lt;/P&gt;&lt;P&gt;spark=SparkSession.builder.appName("oracle_queries").master("local[4]")\&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;.config("spark.sql.warehouse.dir", "C:\\softwares\\git\\pyspark\\hive").getOrCreate()&lt;/P&gt;&lt;P&gt;from pyspark.sql.functions import current_date,year&lt;/P&gt;&lt;P&gt;from pyspark.sql.types import IntegerType,StructType,StructField,StringType&lt;/P&gt;&lt;P&gt;from datetime import datetime, date&lt;/P&gt;&lt;P&gt;from pyspark import SparkContext&lt;/P&gt;&lt;P&gt;sc=SparkContext.getOrCreate()&lt;/P&gt;&lt;P&gt;rdd=sc.parallelize([('ram','chi'),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;('anil','ind')])&lt;/P&gt;&lt;P&gt;df=spark.createDataFrame(rdd,schema=StructType([StructField("name",StringType(),True),StructField("loc",StringType(),True)]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying to see the data but face below error:&lt;/P&gt;&lt;P&gt;df.show()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;U&gt;Error:&lt;/U&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;---------------------------------------------------------------------------&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Py4JJavaError&lt;/B&gt;                             Traceback (most recent call last)&lt;/P&gt;&lt;P&gt;&lt;B&gt;&amp;lt;ipython-input-2-1a6ce2362cd4&amp;gt;&lt;/B&gt; in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;----&amp;gt; 1 &lt;/B&gt;df&lt;B&gt;.&lt;/B&gt;show&lt;B&gt;()&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;c:\program files (x86)\python38-32\lib\site-packages\pyspark\sql\dataframe.py&lt;/B&gt; in show&lt;B&gt;(self, n, truncate, vertical)&lt;/B&gt;&lt;/P&gt;&lt;P&gt;    438         """&lt;/P&gt;&lt;P&gt;    439         &lt;B&gt;if&lt;/B&gt; isinstance&lt;B&gt;(&lt;/B&gt;truncate&lt;B&gt;,&lt;/B&gt; bool&lt;B&gt;)&lt;/B&gt; &lt;B&gt;and&lt;/B&gt; truncate&lt;B&gt;:&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;--&amp;gt; 440             &lt;/B&gt;print&lt;B&gt;(&lt;/B&gt;self&lt;B&gt;.&lt;/B&gt;_jdf&lt;B&gt;.&lt;/B&gt;showString&lt;B&gt;(&lt;/B&gt;n&lt;B&gt;,&lt;/B&gt; &lt;B&gt;20,&lt;/B&gt; vertical&lt;B&gt;))&lt;/B&gt;&lt;/P&gt;&lt;P&gt;    441         &lt;B&gt;else:&lt;/B&gt;&lt;/P&gt;&lt;P&gt;    442             print&lt;B&gt;(&lt;/B&gt;self&lt;B&gt;.&lt;/B&gt;_jdf&lt;B&gt;.&lt;/B&gt;showString&lt;B&gt;(&lt;/B&gt;n&lt;B&gt;,&lt;/B&gt; int&lt;B&gt;(&lt;/B&gt;truncate&lt;B&gt;),&lt;/B&gt; vertical&lt;B&gt;))&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;c:\program files (x86)\python38-32\lib\site-packages\py4j\java_gateway.py&lt;/B&gt; in __call__&lt;B&gt;(self, *args)&lt;/B&gt;&lt;/P&gt;&lt;P&gt;   1302 &lt;/P&gt;&lt;P&gt;   1303         answer &lt;B&gt;=&lt;/B&gt; self&lt;B&gt;.&lt;/B&gt;gateway_client&lt;B&gt;.&lt;/B&gt;send_command&lt;B&gt;(&lt;/B&gt;command&lt;B&gt;)&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;-&amp;gt; 1304         return_value = get_return_value(&lt;/B&gt;&lt;/P&gt;&lt;P&gt;   1305             answer, self.gateway_client, self.target_id, self.name)&lt;/P&gt;&lt;P&gt;   1306 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;c:\program files (x86)\python38-32\lib\site-packages\pyspark\sql\utils.py&lt;/B&gt; in deco&lt;B&gt;(*a, **kw)&lt;/B&gt;&lt;/P&gt;&lt;P&gt;    126     &lt;B&gt;def&lt;/B&gt; deco&lt;B&gt;(*&lt;/B&gt;a&lt;B&gt;,&lt;/B&gt; &lt;B&gt;**&lt;/B&gt;kw&lt;B&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;    127         &lt;B&gt;try:&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;--&amp;gt; 128             return&lt;/B&gt; f&lt;B&gt;(*&lt;/B&gt;a&lt;B&gt;,&lt;/B&gt; &lt;B&gt;**&lt;/B&gt;kw&lt;B&gt;)&lt;/B&gt;&lt;/P&gt;&lt;P&gt;    129         &lt;B&gt;except&lt;/B&gt; py4j&lt;B&gt;.&lt;/B&gt;protocol&lt;B&gt;.&lt;/B&gt;Py4JJavaError &lt;B&gt;as&lt;/B&gt; e&lt;B&gt;:&lt;/B&gt;&lt;/P&gt;&lt;P&gt;    130             converted &lt;B&gt;=&lt;/B&gt; convert_exception&lt;B&gt;(&lt;/B&gt;e&lt;B&gt;.&lt;/B&gt;java_exception&lt;B&gt;)&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;c:\program files (x86)\python38-32\lib\site-packages\py4j\protocol.py&lt;/B&gt; in get_return_value&lt;B&gt;(answer, gateway_client, target_id, name)&lt;/B&gt;&lt;/P&gt;&lt;P&gt;    324             value &lt;B&gt;=&lt;/B&gt; OUTPUT_CONVERTER&lt;B&gt;[&lt;/B&gt;type&lt;B&gt;](&lt;/B&gt;answer&lt;B&gt;[2:],&lt;/B&gt; gateway_client&lt;B&gt;)&lt;/B&gt;&lt;/P&gt;&lt;P&gt;    325             &lt;B&gt;if&lt;/B&gt; answer&lt;B&gt;[1]&lt;/B&gt; &lt;B&gt;==&lt;/B&gt; REFERENCE_TYPE&lt;B&gt;:&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;--&amp;gt; 326                 raise Py4JJavaError(&lt;/B&gt;&lt;/P&gt;&lt;P&gt;    327                     &lt;B&gt;"An error occurred while calling {0}{1}{2}.\n".&lt;/B&gt;&lt;/P&gt;&lt;P&gt;    328                     format(target_id, ".", name), value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Py4JJavaError&lt;/B&gt;: An error occurred while calling o48.showString.&lt;/P&gt;&lt;P&gt;: 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) (DESKTOP-N3C4AUC.attlocal.net executor driver): org.apache.spark.api.python.PythonException: Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;  File "C:\pyspark\spark-3.3.1-bin-hadoop3\python\lib\pyspark.zip\pyspark\worker.py", line 668, in main&lt;/P&gt;&lt;P&gt;ore&lt;/P&gt;</description>
      <pubDate>Sun, 25 Dec 2022 01:02:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/i-created-a-data-frame-but-was-not-able-to-see-the-data/m-p/14720#M9169</guid>
      <dc:creator>Ram443</dc:creator>
      <dc:date>2022-12-25T01:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: I created a data frame but was not able to see the data</title>
      <link>https://community.databricks.com/t5/data-engineering/i-created-a-data-frame-but-was-not-able-to-see-the-data/m-p/14721#M9170</link>
      <description>&lt;P&gt;There can be 3 things&lt;/P&gt;&lt;P&gt;1-You are initializing spark context 2 times&lt;/P&gt;&lt;P&gt;2-You have something wrong with your spark config&lt;/P&gt;&lt;P&gt;3-This can be python version issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because I checked , it is working perfectly fine for me &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;from pyspark.sql import SparkSession
&amp;nbsp;
from pyspark.sql.functions import current_date,year
&amp;nbsp;
from pyspark.sql.types import IntegerType,StructType,StructField,StringType
&amp;nbsp;
from datetime import datetime, date
&amp;nbsp;
from pyspark import SparkContext
&amp;nbsp;
sc=SparkContext.getOrCreate()
&amp;nbsp;
rdd=sc.parallelize([('ram','chi'),
&amp;nbsp;
             ('anil','ind')])
&amp;nbsp;
df=spark.createDataFrame(rdd,schema=StructType([StructField("name",StringType(),True),StructField("loc",StringType(),True)]))
&amp;nbsp;
 
&amp;nbsp;
#Trying to see the data but face below error:
&amp;nbsp;
df.show()&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Attaching Image also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/945iAB08A0134718C398/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please select it as the best answer if you like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Aviral Bhardwaj&lt;/P&gt;</description>
      <pubDate>Sun, 25 Dec 2022 03:21:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/i-created-a-data-frame-but-was-not-able-to-see-the-data/m-p/14721#M9170</guid>
      <dc:creator>Aviral-Bhardwaj</dc:creator>
      <dc:date>2022-12-25T03:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: I created a data frame but was not able to see the data</title>
      <link>https://community.databricks.com/t5/data-engineering/i-created-a-data-frame-but-was-not-able-to-see-the-data/m-p/14722#M9171</link>
      <description>&lt;P&gt;Thank you Bhardwaj for checking the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the configuration I am using, Please let me know if required more details.&lt;/P&gt;&lt;P&gt;If I use read CSV, it is working and I am facing an issue if I create a data frame manually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I installed Spark in my local system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Configuration :&lt;/B&gt;&lt;/P&gt;&lt;P&gt;[('&lt;A href="https://spark.app.name" alt="https://spark.app.name" target="_blank"&gt;spark.app.name&lt;/A&gt;', 'oracle_queries'),&lt;/P&gt;&lt;P&gt;&amp;nbsp;('spark.driver.extraJavaOptions',&lt;/P&gt;&lt;P&gt;&amp;nbsp;'-XX:+IgnoreUnrecognizedVMOptions --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/&lt;A href="https://java.io" alt="https://java.io" target="_blank"&gt;java.io&lt;/A&gt;=ALL-UNNAMED --add-opens=java.base/&lt;A href="https://java.net" alt="https://java.net" target="_blank"&gt;java.net&lt;/A&gt;=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.base/&lt;A href="https://sun.nio.ch" alt="https://sun.nio.ch" target="_blank"&gt;sun.nio.ch&lt;/A&gt;=ALL-UNNAMED --add-opens=java.base/sun.nio.cs=ALL-UNNAMED --add-opens=java.base/sun.security.action=ALL-UNNAMED --add-opens=java.base/sun.util.calendar=ALL-UNNAMED --add-opens=java.security.jgss/sun.security.krb5=ALL-UNNAMED'),&lt;/P&gt;&lt;P&gt;&amp;nbsp;('spark.master', 'local[4]'),&lt;/P&gt;&lt;P&gt;&amp;nbsp;('spark.driver.port', '50219'),&lt;/P&gt;&lt;P&gt;&amp;nbsp;('spark.app.startTime', '1671929660604'),&lt;/P&gt;&lt;P&gt;&amp;nbsp;('&lt;A href="https://spark.executor.id" alt="https://spark.executor.id" target="_blank"&gt;spark.executor.id&lt;/A&gt;', 'driver'),&lt;/P&gt;&lt;P&gt;&amp;nbsp;('&lt;A href="https://spark.app.id" alt="https://spark.app.id" target="_blank"&gt;spark.app.id&lt;/A&gt;', 'local-1671929663025'),&lt;/P&gt;&lt;P&gt;&amp;nbsp;('spark.sql.warehouse.dir', 'file:/C:/softwares/git/pyspark/hive'),&lt;/P&gt;&lt;P&gt;&amp;nbsp;('spark.sql.catalogImplementation', 'hive'),&lt;/P&gt;&lt;P&gt;&amp;nbsp;('spark.rdd.compress', 'True'),&lt;/P&gt;&lt;P&gt;&amp;nbsp;('spark.executor.extraJavaOptions',&lt;/P&gt;&lt;P&gt;&amp;nbsp;'-XX:+IgnoreUnrecognizedVMOptions --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/&lt;A href="https://java.io" alt="https://java.io" target="_blank"&gt;java.io&lt;/A&gt;=ALL-UNNAMED --add-opens=java.base/&lt;A href="https://java.net" alt="https://java.net" target="_blank"&gt;java.net&lt;/A&gt;=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.base/&lt;A href="https://sun.nio.ch" alt="https://sun.nio.ch" target="_blank"&gt;sun.nio.ch&lt;/A&gt;=ALL-UNNAMED --add-opens=java.base/sun.nio.cs=ALL-UNNAMED --add-opens=java.base/sun.security.action=ALL-UNNAMED --add-opens=java.base/sun.util.calendar=ALL-UNNAMED --add-opens=java.security.jgss/sun.security.krb5=ALL-UNNAMED'),&lt;/P&gt;&lt;P&gt;&amp;nbsp;('spark.app.submitTime', '1671929660216'),&lt;/P&gt;&lt;P&gt;&amp;nbsp;('spark.serializer.objectStreamReset', '100'),&lt;/P&gt;&lt;P&gt;&amp;nbsp;('spark.submit.pyFiles', ''),&lt;/P&gt;&lt;P&gt;&amp;nbsp;('spark.submit.deployMode', 'client'),&lt;/P&gt;&lt;P&gt;&amp;nbsp;('spark.driver.host', '&lt;A href="https://DESKTOP-test.attlocal.net" alt="https://DESKTOP-test.attlocal.net" target="_blank"&gt;DESKTOP-test.attlocal.net&lt;/A&gt;'),&lt;/P&gt;&lt;P&gt;&amp;nbsp;('spark.ui.showConsoleProgress', 'true')]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CSV Code :&lt;/P&gt;&lt;P&gt;source_path="C:\\softwares\\git\\pyspark\\source\\emp.csv"&lt;/P&gt;&lt;P&gt;emp=spark.read.csv(source_path,header=True,inferSchema=True)&lt;/P&gt;&lt;P&gt;emp.show()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;+-----+------+---------+----+-----------+----+----+------+&lt;/P&gt;&lt;P&gt;|empno| ename| job| mgr| hiredate| sal|comm|deptno|&lt;/P&gt;&lt;P&gt;+-----+------+---------+----+-----------+----+----+------+&lt;/P&gt;&lt;P&gt;| 7369| SMITH| CLERK|7902|17-DEC-1980| 800|null| 20|&lt;/P&gt;&lt;P&gt;| 7499| ALLEN| null|7698|20-FEB-1981|1600| 300| 30|&lt;/P&gt;&lt;P&gt;| 7521| WARD| SALESMAN|7698|22-FEB-1981|1250| 500| 30|&lt;/P&gt;&lt;P&gt;| 7566| JONES| MANAGER|7839| 2-APR-1981|2975|null| 20|&lt;/P&gt;&lt;P&gt;| 7654|MARTIN| SALESMAN|7698|28-SEP-1981|1250|1400| 30|&lt;/P&gt;&lt;P&gt;| 7698| BLAKE| MANAGER|7839| 1-MAY-1981|2850| 0| 30|&lt;/P&gt;&lt;P&gt;| 7782| CLARK| MANAGER|7839| 9-JUN-1981|2450| 0| 10|&lt;/P&gt;&lt;P&gt;| 7788| SCOTT| ANALYST|7566|09-DEC-1982|3000| 0| 20|&lt;/P&gt;&lt;P&gt;| 7839| KING|PRESIDENT| 0|17-NOV-1981|5000| 0| 10|&lt;/P&gt;&lt;P&gt;| 7844|TURNER| SALESMAN|7698| 8-SEP-1981|1500| 0| 30|&lt;/P&gt;&lt;P&gt;| 7876| ADAMS| CLERK|7788|12-JAN-1983|1100| 0| 20|&lt;/P&gt;&lt;P&gt;| 7900| JAMES| CLERK|7698| 3-DEC-1981| 950| 0| 30|&lt;/P&gt;&lt;P&gt;| 7902| FORD| ANALYST|7566| 3-DEC-1981|3000| 0| 20|&lt;/P&gt;&lt;P&gt;| 7934|MILLER| CLERK|7782|23-JAN-1982|1300| 0| 10|&lt;/P&gt;&lt;P&gt;+-----+------+---------+----+-----------+----+----+------+&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Dec 2022 05:04:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/i-created-a-data-frame-but-was-not-able-to-see-the-data/m-p/14722#M9171</guid>
      <dc:creator>Ram443</dc:creator>
      <dc:date>2022-12-25T05:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: I created a data frame but was not able to see the data</title>
      <link>https://community.databricks.com/t5/data-engineering/i-created-a-data-frame-but-was-not-able-to-see-the-data/m-p/14723#M9172</link>
      <description>&lt;P&gt;remove these two configuration , that contains this type of configuration then try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;extraJavaOptions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Aviral&lt;/P&gt;</description>
      <pubDate>Mon, 26 Dec 2022 04:42:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/i-created-a-data-frame-but-was-not-able-to-see-the-data/m-p/14723#M9172</guid>
      <dc:creator>Aviral-Bhardwaj</dc:creator>
      <dc:date>2022-12-26T04:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: I created a data frame but was not able to see the data</title>
      <link>https://community.databricks.com/t5/data-engineering/i-created-a-data-frame-but-was-not-able-to-see-the-data/m-p/14724#M9173</link>
      <description>&lt;P&gt;Actually, this is a python version issue, I downgraded spark version and now working fine.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2022 01:26:29 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/i-created-a-data-frame-but-was-not-able-to-see-the-data/m-p/14724#M9173</guid>
      <dc:creator>Ram443</dc:creator>
      <dc:date>2022-12-27T01:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: I created a data frame but was not able to see the data</title>
      <link>https://community.databricks.com/t5/data-engineering/i-created-a-data-frame-but-was-not-able-to-see-the-data/m-p/14725#M9174</link>
      <description>&lt;P&gt;wao ,unexpected answer ,i thought this will be configuration issue , but thanks for the info&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2022 01:31:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/i-created-a-data-frame-but-was-not-able-to-see-the-data/m-p/14725#M9174</guid>
      <dc:creator>Aviral-Bhardwaj</dc:creator>
      <dc:date>2022-12-27T01:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: I created a data frame but was not able to see the data</title>
      <link>https://community.databricks.com/t5/data-engineering/i-created-a-data-frame-but-was-not-able-to-see-the-data/m-p/14726#M9175</link>
      <description>&lt;P&gt;@ramanjaneyulu kancharla​&amp;nbsp; can you please select my answer as best answer&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2022 01:33:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/i-created-a-data-frame-but-was-not-able-to-see-the-data/m-p/14726#M9175</guid>
      <dc:creator>Aviral-Bhardwaj</dc:creator>
      <dc:date>2022-12-27T01:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: I created a data frame but was not able to see the data</title>
      <link>https://community.databricks.com/t5/data-engineering/i-created-a-data-frame-but-was-not-able-to-see-the-data/m-p/14727#M9176</link>
      <description>&lt;P&gt;Which DBR version was causing this issue? and what version is not giving you this error? &lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2022 22:58:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/i-created-a-data-frame-but-was-not-able-to-see-the-data/m-p/14727#M9176</guid>
      <dc:creator>jose_gonzalez</dc:creator>
      <dc:date>2022-12-27T22:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: I created a data frame but was not able to see the data</title>
      <link>https://community.databricks.com/t5/data-engineering/i-created-a-data-frame-but-was-not-able-to-see-the-data/m-p/14728#M9177</link>
      <description>&lt;P&gt;&lt;B&gt;facing issues with the below versions:&lt;/B&gt; &lt;/P&gt;&lt;P&gt;DBR Package: spark-3.3.1-bin-hadoop3&lt;/P&gt;&lt;P&gt;python version: 3.8.3&lt;/P&gt;&lt;P&gt;OS: Windows 11 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;below versions are working fine:&lt;/B&gt; &lt;/P&gt;&lt;P&gt;DBR Package: spark-3.0.2-bin-hadoop2.7&lt;/P&gt;&lt;P&gt;python version: 3.8.3&lt;/P&gt;&lt;P&gt;OS: Windows 11 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you require more details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 02:02:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/i-created-a-data-frame-but-was-not-able-to-see-the-data/m-p/14728#M9177</guid>
      <dc:creator>Ram443</dc:creator>
      <dc:date>2022-12-28T02:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: I created a data frame but was not able to see the data</title>
      <link>https://community.databricks.com/t5/data-engineering/i-created-a-data-frame-but-was-not-able-to-see-the-data/m-p/14729#M9178</link>
      <description>&lt;P&gt;How you downgraded the version? &lt;/P&gt;</description>
      <pubDate>Sat, 17 Jun 2023 01:53:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/i-created-a-data-frame-but-was-not-able-to-see-the-data/m-p/14729#M9178</guid>
      <dc:creator>riyapics1115</dc:creator>
      <dc:date>2023-06-17T01:53:20Z</dc:date>
    </item>
  </channel>
</rss>

