Build spark application into uber jar

2015-06-18 Thread bit1...@163.com
Hi,sparks, I have a spark streaming application that is a maven project, I would like to build it into a uber jar and run in the cluster. I have found out two options to build the uber jar, either of them has its shortcomings, so I would ask how you guys do it. Thanks. 1. Use the maven shade ja

RE: Build spark application into uber jar

2015-06-18 Thread prajod.vettiyattil
spark application into uber jar Hi,sparks, I have a spark streaming application that is a maven project, I would like to build it into a uber jar and run in the cluster. I have found out two options to build the uber jar, either of them has its shortcomings, so I would ask how you guys do it. Than

Re: Build spark application into uber jar

2015-06-19 Thread Akhil Das
on locally, it complains that spark > related stuff is missing > > > > I use the uber jar option. What do you mean by “locally” ? In the Spark > scala shell ? In the > > > > *From:* bit1...@163.com [mailto:bit1...@163.com] > *Sent:* 19 June 2015 08:11 > *To:* use

Re: RE: Build spark application into uber jar

2015-06-19 Thread bit1...@163.com
@163.com From: prajod.vettiyat...@wipro.com Date: 2015-06-19 14:39 To: user@spark.apache.org Subject: RE: Build spark application into uber jar > but when I run the application locally, it complains that spark related stuff > is missing I use the uber jar option. What do you mean by “locally” ? In t

RE: Re: Build spark application into uber jar

2015-06-19 Thread prajod.vettiyattil
target can have its own command line options. prajod From: bit1...@163.com [mailto:bit1...@163.com] Sent: 19 June 2015 12:36 To: Akhil Das; Prajod S Vettiyattil (WT01 - BAS) Cc: user Subject: Re: Re: Build spark application into uber jar Thank you Akhil. Hmm.. but I am using Maven as the

Re: RE: Build spark application into uber jar

2015-06-19 Thread bit1...@163.com
ClusterRun provided bit1...@163.com From: prajod.vettiyat...@wipro.com Date: 2015-06-19 15:22 To: bit1...@163.com; ak...@sigmoidanalytics.com CC: user@spark.apache.org Subject: RE: Re: Build spark application into uber jar Hi, When running inside Eclipse IDE, I use another maven target

RE: RE: Build spark application into uber jar

2015-06-19 Thread prajod.vettiyattil
..@163.com] Sent: 19 June 2015 13:01 To: Prajod S Vettiyattil (WT01 - BAS); Akhil Das Cc: user Subject: Re: RE: Build spark application into uber jar Thanks. I guess what you mean by "maven build target" is maven profile. I added two profiles, one is LocalRun, the other is ClusterR

Re: RE: Build spark application into uber jar

2015-06-19 Thread bit1...@163.com
Sure, Thanks Projod for the detailed steps! bit1...@163.com From: prajod.vettiyat...@wipro.com Date: 2015-06-19 16:56 To: bit1...@163.com; ak...@sigmoidanalytics.com CC: user@spark.apache.org Subject: RE: RE: Build spark application into uber jar Multiple maven profiles may be the ideal way