<?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>question not able to import import spark.implicits._ in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/not-able-to-import-import-spark-implicits/m-p/210244#M84230</link>
    <description>&lt;P&gt;I am using spark shell , my os is centos6 when i am trying to import spark.implicits._ , i get below error:&lt;/P&gt;&lt;PRE&gt;&amp;lt;console&amp;gt;:30: error: not found: value spark
         import spark.implicits._
                ^&lt;/PRE&gt;</description>
    <pubDate>Thu, 11 Oct 2018 12:00:57 GMT</pubDate>
    <dc:creator>amol_08</dc:creator>
    <dc:date>2018-10-11T12:00:57Z</dc:date>
    <item>
      <title>not able to import import spark.implicits._</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/not-able-to-import-import-spark-implicits/m-p/210244#M84230</link>
      <description>&lt;P&gt;I am using spark shell , my os is centos6 when i am trying to import spark.implicits._ , i get below error:&lt;/P&gt;&lt;PRE&gt;&amp;lt;console&amp;gt;:30: error: not found: value spark
         import spark.implicits._
                ^&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Oct 2018 12:00:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/not-able-to-import-import-spark-implicits/m-p/210244#M84230</guid>
      <dc:creator>amol_08</dc:creator>
      <dc:date>2018-10-11T12:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: not able to import import spark.implicits._</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/not-able-to-import-import-spark-implicits/m-p/210245#M84231</link>
      <description>&lt;P&gt;also I get below error too :&lt;/P&gt;&lt;PRE&gt;scala&amp;gt; val spark = SparkSession.builder().enableHiveSupport().getOrCreate()
&amp;lt;console&amp;gt;:30: error: not found: value SparkSession
         val spark = SparkSession.builder().enableHiveSupport().getOrCreate(&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Oct 2018 14:15:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/not-able-to-import-import-spark-implicits/m-p/210245#M84231</guid>
      <dc:creator>amol_08</dc:creator>
      <dc:date>2018-10-11T14:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: not able to import import spark.implicits._</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/not-able-to-import-import-spark-implicits/m-p/210246#M84232</link>
      <description>&lt;P&gt;I am able to import  import spark.implicits._ , earlier i was using spark1 but launching spark2 solved the problem.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 18:27:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/not-able-to-import-import-spark-implicits/m-p/210246#M84232</guid>
      <dc:creator>amol_08</dc:creator>
      <dc:date>2018-10-16T18:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: not able to import import spark.implicits._</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/not-able-to-import-import-spark-implicits/m-p/299623#M84233</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;There is no package called&amp;nbsp;&lt;/SPAN&gt;spark.implicits.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808000"&gt;&lt;STRONG&gt;Spark 1.x:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;If you are using spark1.x version you will create&amp;nbsp;&lt;SPAN&gt;sqlContext&lt;/SPAN&gt;. By using&amp;nbsp;&lt;SPAN&gt;sqlContext&amp;nbsp;&lt;/SPAN&gt; you can call&amp;nbsp;&lt;SPAN&gt;sqlContext.implicits&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#993366"&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;val &lt;/SPAN&gt;&lt;SPAN&gt;sc &lt;/SPAN&gt;= &lt;SPAN&gt;new &lt;/SPAN&gt;SparkContext(&lt;SPAN&gt;conf&lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN&gt;val &lt;/SPAN&gt;&lt;SPAN&gt;sqlContext &lt;/SPAN&gt;= &lt;SPAN&gt;new &lt;/SPAN&gt;SQLContext(&lt;SPAN&gt;sc&lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN&gt;sqlContext&lt;/SPAN&gt;.implicits&lt;/PRE&gt;&lt;P&gt;&lt;FONT color="#003366"&gt;&lt;STRONG&gt;Spark 2.x:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;If you are using spark2.x version you will create&amp;nbsp;&lt;SPAN&gt;session object&lt;/SPAN&gt;. By using&amp;nbsp;&lt;SPAN&gt;session&lt;/SPAN&gt;&amp;nbsp;you can call&amp;nbsp;&lt;SPAN&gt;spark.implicits.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#993366"&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;val &lt;/SPAN&gt;&lt;SPAN&gt;spark&lt;/SPAN&gt;: SparkSession = SparkSession.builder.appName(&lt;SPAN&gt;appName&lt;/SPAN&gt;).config(&lt;SPAN&gt;"spark.master"&lt;/SPAN&gt;, &lt;SPAN&gt;"local[*]"&lt;/SPAN&gt;).getOrCreate&lt;BR /&gt;&lt;SPAN&gt;spark&lt;/SPAN&gt;.implicits&lt;/PRE&gt;&lt;P&gt;&lt;FONT color="#99CC00"&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt;&lt;/FONT&gt; If you are created session object using different name then you need to call with that reference name.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example,&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;val &lt;/SPAN&gt;&lt;SPAN&gt;rangaSpark&lt;/SPAN&gt;: SparkSession = SparkSession.builder.appName(&lt;SPAN&gt;appName&lt;/SPAN&gt;).config(&lt;SPAN&gt;"spark.master"&lt;/SPAN&gt;, &lt;SPAN&gt;"local[*]"&lt;/SPAN&gt;).getOrCreate&lt;BR /&gt;&lt;SPAN&gt;rangaSpark&lt;/SPAN&gt;.implicits&amp;nbsp;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 Jul 2020 04:41:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/not-able-to-import-import-spark-implicits/m-p/299623#M84233</guid>
      <dc:creator>RangaReddy</dc:creator>
      <dc:date>2020-07-14T04:41:27Z</dc:date>
    </item>
  </channel>
</rss>

