Good catch, thanks. Things work now after changing the version.

For reference, I got the" 2.11" version from my separate download of Scala:
$ scala
Welcome to Scala version 2.11.7 (Java HotSpot(TM) 64-Bit Server VM, Java
1.7.0_67).

But my Spark version is indeed running Scala "2.10":
park-shell
16/01/04 12:47:18 WARN NativeCodeLoader: Unable to load native-hadoop
library for your platform... using builtin-java classes where applicable
Welcome to
      ____              __
     / __/__  ___ _____/ /__
    _\ \/ _ \/ _ `/ __/  '_/
   /___/ .__/\_,_/_/ /_/\_\   version 1.5.2
      /_/

Using Scala version 2.10.4 (Java HotSpot(TM) 64-Bit Server VM, Java
1.7.0_67)

After changing my sbt file, I could finally submit my scala code to spark.
Thanks!


On Mon, Jan 4, 2016 at 12:26 PM, nraychaudhuri [via Apache Spark User List]
<ml-node+s1001560n25874...@n3.nabble.com> wrote:

> Is the Spark distribution you are using built with scala 2.11? I think the
> default one is built using scala 2.10.
>
> Nilanjan
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-spark-user-list.1001560.n3.nabble.com/Spark-1-4-RDD-to-DF-fails-with-toDF-tp23499p25874.html
> To unsubscribe from Spark 1.4 RDD to DF fails with toDF(), click here
> <http://apache-spark-user-list.1001560.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=23499&code=ZmFicmljZS5ndWlsbGF1bWVAY2lyY2xlYmFjay5jb218MjM0OTl8NjQ0OTk1MTE1>
> .
> NAML
> <http://apache-spark-user-list.1001560.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>



-- 


*Fabrice Guillaume*VP of Engineering
CircleBack, Inc.

Office   +1 (703) 520-5555 x755
Cell      +1 (703) 928-1851
Email   fabr...@circleback.com
Download CircleBack for iOS <https://app.adjust.com/cyzgwl> & Android
<https://app.adjust.com/n7njlu>




--
View this message in context: 
http://apache-spark-user-list.1001560.n3.nabble.com/Spark-1-4-RDD-to-DF-fails-with-toDF-tp23499p25875.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

Reply via email to