spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bchazalet <>
Subject spark 1.2: value toJSON is not a member of org.apache.spark.sql.SchemaRDD
Date Mon, 05 Jan 2015 11:11:52 GMT
Hi everyone,

I have just switched to spark 1.2.0 from 1.1.1, updating my sbt to point to
the 1.2.0 jars.

  "org.apache.spark"  %% "spark-core"              % "1.2.0",
  "org.apache.spark"  %% "spark-sql"               % "1.2.0",
  "org.apache.spark"  %% "spark-hive"              % "1.2.0",

I was hoping to use the new SchemaRDD#toJSON among other features, but it
seems that this method is not available in the 1.2.0 spark-sql jars. I did a
'javap SchemaRDD.class | grep toJSON' on the unarchived
spark-sql_2.10-1.2.0.jar that I got from maven, but it's not there.

The SchemaRDD#toJson is present in the  source
within the branch-1.2 branch though.

I am missing something? Or wasn't that feature shipped with 1.2?

View this message in context:
Sent from the Apache Spark User List mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message