You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Eugene Cao <eu...@163.com> on 2015/09/28 02:01:56 UTC
textFile() and includePackage() not found
Error: no methods for 'textFile'
when I run the following 2nd command after SparkR initialized
sc <- sparkR.init(appName = "RwordCount")
lines <- textFile(sc, args[[1]])
But the following command works:
lines2 <- SparkR:::textFile(sc, "C:\\SelfStudy\\SPARK\\sentences2.txt")
In addition, it says in official web "The includePackage command can be used
to indicate packages...", but
includePackage(sc, Matrix) with error: not find?
Thanks a lot in advance!
Eugene Cao
Xi'an Jiaotong University
--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/textFile-and-includePackage-not-found-tp24834.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
For additional commands, e-mail: user-help@spark.apache.org
RE: textFile() and includePackage() not found
Posted by "Sun, Rui" <ru...@intel.com>.
Eugene,
SparkR RDD API is private for now (https://issues.apache.org/jira/browse/SPARK-7230)
You can use SparkR::: prefix to access those private functions.
-----Original Message-----
From: Eugene Cao [mailto:eugene_yj@163.com]
Sent: Monday, September 28, 2015 8:02 AM
To: user@spark.apache.org
Subject: textFile() and includePackage() not found
Error: no methods for 'textFile'
when I run the following 2nd command after SparkR initialized
sc <- sparkR.init(appName = "RwordCount") lines <- textFile(sc, args[[1]])
But the following command works:
lines2 <- SparkR:::textFile(sc, "C:\\SelfStudy\\SPARK\\sentences2.txt")
In addition, it says in official web "The includePackage command can be used to indicate packages...", but includePackage(sc, Matrix) with error: not find?
Thanks a lot in advance!
Eugene Cao
Xi'an Jiaotong University
--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/textFile-and-includePackage-not-found-tp24834.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@spark.apache.org For additional commands, e-mail: user-help@spark.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
For additional commands, e-mail: user-help@spark.apache.org