Re: Performing sc.paralleize (..) in workers not in the driver program

2015-06-26 Thread Akhil Das
Why do you want to do that?

Thanks
Best Regards

On Thu, Jun 25, 2015 at 10:16 PM, shahab shahab.mok...@gmail.com wrote:

 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



RE: Performing sc.paralleize (..) in workers not in the driver program

2015-06-26 Thread prajod.vettiyattil
This is how it works, I think:

sc.parallelize(..) takes the variable inside the (..) and returns a 
“distributable equivalent” of that variable. That is, an RDD is returned.

This RDD can be worked on by multiple workers threads in _parallel_. The 
parallelize(..) has to be done on the driver running on the Master(and not on 
workers), so that the resulting RDD’s parts can be sent across to the workers 
who have enough resources. Each worker processes a part of the RDD.

So it is the “sc.paralleize (..)  operation is performed in the driver program” 
that enables scalability. Horizontal scalablity.

From: Akhil Das [mailto:ak...@sigmoidanalytics.com]
Sent: 26 June 2015 13:33
To: shahab
Cc: user@spark.apache.org
Subject: Re: Performing sc.paralleize (..) in workers not in the driver program

Why do you want to do that?

Thanks
Best Regards

On Thu, Jun 25, 2015 at 10:16 PM, shahab 
shahab.mok...@gmail.commailto:shahab.mok...@gmail.com wrote:
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 electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com


RE: Performing sc.paralleize (..) in workers not in the driver program

2015-06-25 Thread Ganelin, Ilya
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.commailto: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.