Hi,

In a Zeppelin notebook, I am trying to load a csv using the spark-csv
package by databricks. I am using the Hortonworks sandbox to run Zeppelin
on. Unfortunately, the methods I have been trying have not been working.

My latest attempt is:
%dep
z.load("com.databricks:spark-csv_2.10:1.2.0")
%spark
val crimeData = "hdfs://
sandbox.hortonworks.com:8020/user/root/data/crime_incidents_2013_CSV.csv"
sqlContext.load("hdfs://
sandbox.hortonworks.com:8020/user/root/data/crime_incidents_2013_CSV.csv",
Map("path" -> crimeData, "header" -> "true")).registerTempTable("crimes")

This is the error I receive:
<console>:16: error: not found: value sqlContext sqlContext.load("hdfs://
sandbox.hortonworks.com:8020/user/root/data/crime_incidents_2013_CSV.csv",
Map("path" -> crimeData, "header" -> "true")).registerTempTable("crimes") ^
<console>:12: error: not found: value % %spark ^
Thank you for any help in advance,
Ryan

Reply via email to