<?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 Re: Save data from Spark DataFrames to TFRecords in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/save-data-from-spark-dataframes-to-tfrecords/m-p/15668#M9975</link>
    <description>&lt;P&gt;Hi @THIAM HUAT TAN​,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which DBR version are you using? are you using the ML runtime?&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jul 2022 17:47:39 GMT</pubDate>
    <dc:creator>jose_gonzalez</dc:creator>
    <dc:date>2022-07-05T17:47:39Z</dc:date>
    <item>
      <title>Save data from Spark DataFrames to TFRecords</title>
      <link>https://community.databricks.com/t5/data-engineering/save-data-from-spark-dataframes-to-tfrecords/m-p/15667#M9974</link>
      <description>&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/azure/databricks/_static/notebooks/deep-learning/tfrecords-save-load.html" target="test_blank"&gt;https://docs.microsoft.com/en-us/azure/databricks/_static/notebooks/deep-learning/tfrecords-save-load.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could not run the Cell # 2&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;java.lang.ClassNotFoundException: 
---------------------------------------------------------------------------
Py4JJavaError                             Traceback (most recent call last)
&amp;lt;command-4336535992800220&amp;gt; in &amp;lt;module&amp;gt;
      3 path = '/ml/flowersData/df-{}.tfrecord'.format(name_uuid)
      4 print(path)
----&amp;gt; 5 df.limit(100).write.format("tfrecords").mode("overwrite").save(path)
&amp;nbsp;
/databricks/spark/python/pyspark/sql/readwriter.py in save(self, path, format, mode, partitionBy, **options)
    738             self._jwrite.save()
    739         else:
--&amp;gt; 740             self._jwrite.save(path)
    741 
    742     @since(1.4)
&amp;nbsp;
/databricks/spark/python/lib/py4j-0.10.9.1-src.zip/py4j/java_gateway.py in __call__(self, *args)
   1302 
   1303         answer = self.gateway_client.send_command(command)
-&amp;gt; 1304         return_value = get_return_value(
   1305             answer, self.gateway_client, self.target_id, self.name)
   1306 &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Can anyone help?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 12:42:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/save-data-from-spark-dataframes-to-tfrecords/m-p/15667#M9974</guid>
      <dc:creator>THIAM_HUATTAN</dc:creator>
      <dc:date>2022-06-29T12:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Save data from Spark DataFrames to TFRecords</title>
      <link>https://community.databricks.com/t5/data-engineering/save-data-from-spark-dataframes-to-tfrecords/m-p/15668#M9975</link>
      <description>&lt;P&gt;Hi @THIAM HUAT TAN​,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which DBR version are you using? are you using the ML runtime?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 17:47:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/save-data-from-spark-dataframes-to-tfrecords/m-p/15668#M9975</guid>
      <dc:creator>jose_gonzalez</dc:creator>
      <dc:date>2022-07-05T17:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: Save data from Spark DataFrames to TFRecords</title>
      <link>https://community.databricks.com/t5/data-engineering/save-data-from-spark-dataframes-to-tfrecords/m-p/15669#M9976</link>
      <description>&lt;P&gt;yes, the issue arise from the cluster which is a non-ML runtime. Thanks for your comments.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 05:20:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/save-data-from-spark-dataframes-to-tfrecords/m-p/15669#M9976</guid>
      <dc:creator>THIAM_HUATTAN</dc:creator>
      <dc:date>2022-07-06T05:20:33Z</dc:date>
    </item>
  </channel>
</rss>

