The parallelize operation accepts as input a data structure in memory. When you 
call it, you are necessarily operating In the memory space of the driver since 
that is where user code executes. Until you have an RDD, you can't really 
operate in a distributed way.

If your files are stores in a distributed file system such as HDFS then you can 
create an RDD from those directly with sc.textFile(...).



Thank you,
Ilya Ganelin



-----Original Message-----
From: shahab [shahab.mok...@gmail.com<mailto:shahab.mok...@gmail.com>]
Sent: Thursday, June 25, 2015 12:46 PM Eastern Standard Time
To: user@spark.apache.org
Subject: Performing sc.paralleize (..) in workers not in the driver program

Hi,

Apparently, sc.paralleize (..)  operation is performed in the driver program 
not in the workers ! Is it possible to do this in worker process for the sake 
of scalability?

best
/Shahab
________________________________________________________

The information contained in this e-mail is confidential and/or proprietary to 
Capital One and/or its affiliates and may only be used solely in performance of 
work or services for Capital One. The information transmitted herewith is 
intended only for use by the individual or entity to which it is addressed. If 
the reader of this message is not the intended recipient, you are hereby 
notified that any review, retransmission, dissemination, distribution, copying 
or other use of, or taking of any action in reliance upon this information is 
strictly prohibited. If you have received this communication in error, please 
contact the sender and delete the material from your computer.

Reply via email to