You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by swetha <sw...@gmail.com> on 2015/10/21 22:05:48 UTC

Distributed caching of a file in SPark Streaming

Hi,

I need to cache a file in a distributed fashion like Hadoop Distributed
Cache and to be able to use it when needed. Is doing the following a right
way of doing the same? Also, by doing SparkFiles.get(fileName) , would it
just give all the contents in the form of a String?

SparkContext.addFile()

SparkFiles.get(fileName) 

Thanks,
Swetha



--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/Distributed-caching-of-a-file-in-SPark-Streaming-tp25157.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