No, not all rdds have location information, and in any case tasks may be scheduled on non-local nodes if there is idle capacity.
see spark.locality.wait http://spark.apache.org/docs/latest/configuration.html On Tue, Jan 6, 2015 at 10:17 AM, gtinside <gtins...@gmail.com> wrote: > Does spark guarantee to push the processing to the data ? Before creating > tasks does spark always check for data location ? So for example if I have > 3 > spark nodes (Node1, Node2, Node3) and data is local to just 2 nodes (Node1 > and Node2) , will spark always schedule tasks on the node for which the > data > is local ie Node1 and Node 2(assuming Node1 and Node2 have enough resources > to execute the tasks)? > > Gaurav > > > > -- > View this message in context: > http://apache-spark-user-list.1001560.n3.nabble.com/Data-Locality-tp21000.html > Sent from the Apache Spark User List mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@spark.apache.org > For additional commands, e-mail: user-h...@spark.apache.org > >