got it when I read the class refference

https://spark.apache.org/docs/0.9.1/api/core/index.html#org.apache.spark.SparkConf

conf.setMaster("local[2]")

set the master to local with 2 threads

but still get some warnings and the result (see below) is also not right i
think

ps: by the way ... first i run like this

sbt "run ~/git/spark/data/mllib/sample_binary_classification_data.txt"

but the app didnt find the file because it startet at the local directory an
pointed to

/home/filip/spark-sample/~/git/spark/data/mllib/sample_binary_classification_data.txt

any explanation???

ps2: i guess many of us from the user side have problems with scala sbt and
the class lib. has any of you a suggestion how i can overcome this. it is
pretty time consuming trial and error :-( 

------------

14/08/28 11:47:37 INFO ui.SparkUI: Started SparkUI at
http://filip-VirtualBox.localdomain:4040
14/08/28 11:47:41 WARN util.NativeCodeLoader: Unable to load native-hadoop
library for your platform... using builtin-java classes where applicable
14/08/28 11:47:41 WARN snappy.LoadSnappy: Snappy native library not loaded
Training: 84, test: 16.
14/08/28 11:47:47 WARN netlib.BLAS: Failed to load implementation from:
com.github.fommil.netlib.NativeSystemBLAS
14/08/28 11:47:47 WARN netlib.BLAS: Failed to load implementation from:
com.github.fommil.netlib.NativeRefBLAS
Test areaUnderPR = 1.0.
Test areaUnderROC = 1.0.






--
View this message in context: 
http://apache-spark-user-list.1001560.n3.nabble.com/sbt-package-assembly-run-spark-examples-tp13000p13001.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@spark.apache.org
For additional commands, e-mail: user-h...@spark.apache.org

Reply via email to