/apache/spark/examples/streaming/NetworkWordCount.scala
to check if all the needed packages are there.
Thanks.
--
View this message in context:
http://apache-spark-user-list.1001560.n3.nabble.com/saveAsTextFile-error-tp18960p19006.html
Sent from the Apache Spark User List mailing list archive
Hi Niko,
It looks like you are calling a method on DStream, which does not exist.
Check out:
https://spark.apache.org/docs/1.1.0/streaming-programming-guide.html#output-operations-on-dstreams
for the method "saveAsTextFiles"
Harold
On Fri, Nov 14, 2014 at 10:39 AM, Niko Gamulin
wrote:
> Hi,
Hi,
I tried to modify NetworkWordCount example in order to save the output to a
file.
In NetworkWordCount.scala I replaced the line
wordCounts.print()
with
wordCounts.saveAsTextFile("/home/bart/rest_services/output.txt")
When I ran sbt/sbt package it returned the following error:
[error]
/home