Scala 增加Spark shell的可用内存

Scala 增加Spark shell的可用内存,scala,apache-spark,Scala,Apache Spark,我正在尝试在Raspberry Pi1 B型上安装Apache Spark+ 启动命令shell并尝试命令后: val l = sc.parallelize(List()).collect 我收到例外情况: scala> val l = sc.parallelize(List()).collect 15/03/22 19:52:44 INFO SparkContext: Starting job: collect at <console>:21 15/03/22 19:52:

我正在尝试在Raspberry Pi1 B型上安装Apache Spark+

启动命令shell并尝试命令后:

val l = sc.parallelize(List()).collect
我收到例外情况:

scala> val l = sc.parallelize(List()).collect
15/03/22 19:52:44 INFO SparkContext: Starting job: collect at <console>:21
15/03/22 19:52:44 INFO DAGScheduler: Got job 0 (collect at <console>:21) with 1 output partitions (allowLocal=false)
15/03/22 19:52:44 INFO DAGScheduler: Final stage: Stage 0(collect at <console>:21)
15/03/22 19:52:44 INFO DAGScheduler: Parents of final stage: List()
15/03/22 19:52:44 INFO DAGScheduler: Missing parents: List()
15/03/22 19:52:44 INFO DAGScheduler: Submitting Stage 0 (ParallelCollectionRDD[0] at parallelize at <console>:21), which has no missing parents
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGILL (0x4) at pc=0x9137c074, pid=3596, tid=2415826032
#
# JRE version: Java(TM) SE Runtime Environment (8.0-b132) (build 1.8.0-b132)
# Java VM: Java HotSpot(TM) Client VM (25.0-b70 mixed mode linux-arm )
# Problematic frame:
# C  [snappy-unknown-b62d2fa0-8fdd-4b4b-8c2c-2f24ddaeee74-libsnappyjava.so+0x1074]  _init+0x1a7
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/pi/spark-1.3.0-bin-hadoop2.4/bin/hs_err_pid3596.log
./spark-shell: line 55:  3596 Segmentation fault      "$FWDIR"/bin/spark-submit --class org.apache.spark.repl.Main "${SUBMISSION_OPTS[@]}" spark-shell "${APPLICATION_OPTS[@]}"
但仍然收到相同的异常

启动spark shell时,有267MB内存可用:

15/03/22 17:09:49 INFO MemoryStore: MemoryStore started with capacity 267.3 MB
这个内存是否足够在shell中运行Spark命令

启动spark shell将不可用内存溢出到磁盘的命令是否正确:
/spark shell--conf StorageLevel=memory_AND_disk

更新:

我试过:

./spark-shell --conf spark.driver.memory=256m

val l = sc.parallelize(List()).collect
但是同样的结果

尝试使用
--driver memory
选项来设置驱动程序进程的内存。例如:

./spark-shell --driver-memory 2g

对于2GB内存。

谢谢,但是如何指示命令shell也使用内存和磁盘呢?
./spark-shell --driver-memory 2g