amplab / training

Training materials for Strata, AMP Camp, etc
150 stars 121 forks source link

Problem launching KeystoneML #216

Closed jpvert closed 8 years ago

jpvert commented 8 years ago

Hello,

I try to run the keystonML session available at http://www.cs.berkeley.edu/~jey/ampcamp6/training/image-classification-with-pipelines.html

The directory on the USB key (I downloaded the zip file) is ampcamp6/keystoneml/ampcamp-keystoneml/ while it should be ampcamp6/ampcamp-keystoneml/

In the "2.Setup" section of http://www.cs.berkeley.edu/~jey/ampcamp6/training/image-classification-with-pipelines.html , the Scala code to launch the Spark Shell says

Make sure you do this in the root of the USB directory.

while it should say

Make sure you do this in the 'scala' directory of the USB directory.

Then when I launch the shell as explained: usb/$ ./bin/spark-shell --master local[4] --jars ../ampcamp-keystoneml/ampcamp-keystoneml.jar --driver-memory 2G --driver-class-path ../ampcamp-keystoneml/ampcamp-keystoneml.jar .. I get a long error message that starts with: 15/11/09 18:58:58 ERROR SparkContext: Error initializing SparkContext. ... and finishes with:

:10: error: not found: value sqlContext import sqlContext.sql ^ Thanks jp