运行SparkR进程在Mac OS X中出错

时间:2015-03-28 00:34:07

标签: r

我在Mac OS X中安装了SparkR。(请注意我没有安装Spark或Scala)。我能够启动SparkR,我在操作时如何得到以下错误 -

> data <- textFile(sc, "README.md")  
> count(data)
15/03/27 19:53:12 INFO FileInputFormat: Total input paths to process : 1
Error in .jcall(getJRDD(rdd), "Ljava/util/List;", "collect") : 
org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in
stage 0.0 failed 1 times, most recent failure: Lost task 0.0 in stage 0.0 (TID 0, localhost): java.net.SocketTimeoutException: connect timed out
    java.net.PlainSocketImpl.socketConnect(Native Method)
    java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:382)
    java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:241)
    java.net.PlainSocketImpl.connect(PlainSocketImpl.java:228)
    java.net.SocksSocketImpl.connect(SocksSocketImpl.java:431)
    java.net.Socket.connect(Socket.java:527)
    sun.net.NetworkClient.doConnect(NetworkClient.java:158)
    sun.net.www.http.HttpClient.openServer(HttpClient.java:424)
    sun.net.www.http.HttpClient.openServer(HttpClient.java:538)

任何帮助将不胜感激。我正在使用AMPLAB SparkR。 http://ampcamp.berkeley.edu/5/exercises/sparkr.html

0 个答案:

没有答案