<?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: MEMORY_ONLY not working in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/memory-only-not-working/m-p/13065#M7792</link>
    <description>&lt;P&gt;Hi @Gaurav Poojary​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please try the below as displayed in the image it is working for me without any issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/889i5A607DAD362D35C2/image-size/large?v=v2&amp;amp;px=999" role="button" title="2" alt="2" /&gt;&lt;/span&gt;Happy Learning!!&lt;/P&gt;</description>
    <pubDate>Sun, 08 Jan 2023 07:50:06 GMT</pubDate>
    <dc:creator>Chaitanya_Raju</dc:creator>
    <dc:date>2023-01-08T07:50:06Z</dc:date>
    <item>
      <title>MEMORY_ONLY not working</title>
      <link>https://community.databricks.com/t5/data-engineering/memory-only-not-working/m-p/13064#M7791</link>
      <description>&lt;P&gt;val doubledAmount = premiumCustomers.map(x=&amp;gt;(x._1, x._2*2)).persist(StorageLevel.MEMORY_ONLY)&lt;/P&gt;&lt;P&gt; error: not found: value StorageLevel&lt;/P&gt;</description>
      <pubDate>Sun, 08 Jan 2023 06:25:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/memory-only-not-working/m-p/13064#M7791</guid>
      <dc:creator>gpzz</dc:creator>
      <dc:date>2023-01-08T06:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: MEMORY_ONLY not working</title>
      <link>https://community.databricks.com/t5/data-engineering/memory-only-not-working/m-p/13065#M7792</link>
      <description>&lt;P&gt;Hi @Gaurav Poojary​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please try the below as displayed in the image it is working for me without any issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/889i5A607DAD362D35C2/image-size/large?v=v2&amp;amp;px=999" role="button" title="2" alt="2" /&gt;&lt;/span&gt;Happy Learning!!&lt;/P&gt;</description>
      <pubDate>Sun, 08 Jan 2023 07:50:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/memory-only-not-working/m-p/13065#M7792</guid>
      <dc:creator>Chaitanya_Raju</dc:creator>
      <dc:date>2023-01-08T07:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: MEMORY_ONLY not working</title>
      <link>https://community.databricks.com/t5/data-engineering/memory-only-not-working/m-p/13066#M7793</link>
      <description>&lt;P&gt;@Ratna Chaitanya Raju Bandaru​&amp;nbsp;&lt;/P&gt;&lt;P&gt;how to convert to rdd before storing. I want to do some transformations&lt;/P&gt;&lt;P&gt; i am attaching the whole code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;val input = sc.textFile("dbfs:/FileStore/shared_uploads/Recent9/customerorders.csv")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;val mappedInput = input.map(x=&amp;gt;(x.split(",")(0), x.split(",")(2).toFloat))&lt;/P&gt;&lt;P&gt;val totalByCustomer = mappedInput.reduceByKey(_+_)&lt;/P&gt;&lt;P&gt;val premiumCustomers = totalByCustomer.filter(x =&amp;gt; x._2 &amp;gt; 5000)&lt;/P&gt;&lt;P&gt;val doubledAmount = premiumCustomers.map(x=&amp;gt;(x._1, x._2*2)).persist(StorageLevel.MEMORY_ONLY)&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 04:35:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/memory-only-not-working/m-p/13066#M7793</guid>
      <dc:creator>gpzz</dc:creator>
      <dc:date>2023-01-13T04:35:32Z</dc:date>
    </item>
  </channel>
</rss>

