RE: java.lang.ArrayIndexOutOfBoundsException: 0 on Yarn Client

2015-07-28 Thread Manohar Reddy
Yaa got it Thanks Akhil. From: Akhil Das [mailto:ak...@sigmoidanalytics.com] Sent: Tuesday, July 28, 2015 2:47 PM To: Manohar Reddy Cc: user@spark.apache.org Subject: Re: java.lang.ArrayIndexOutOfBoundsException: 0 on Yarn Client That happens when you batch duration is less than your processing

Re: java.lang.ArrayIndexOutOfBoundsException: 0 on Yarn Client

2015-07-28 Thread Akhil Das
java:745) > > > > > > *From:* Akhil Das [mailto:ak...@sigmoidanalytics.com] > *Sent:* Tuesday, July 28, 2015 2:30 PM > > *To:* Manohar Reddy > *Cc:* user@spark.apache.org > *Subject:* Re: java.lang.ArrayIndexOutOfBoundsException: 0 on Yarn Client > > > > You need to trigger an ac

RE: java.lang.ArrayIndexOutOfBoundsException: 0 on Yarn Client

2015-07-28 Thread Manohar Reddy
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) From: Akhil Das [mailto:ak...@sigmoidanalytics.com] Sent: Tuesday, July 28, 2015 2:30 PM To: Manohar Reddy Cc: user@spark.apache.org Subject: Re: java.lang.ArrayIndexOutOfBoundsException: 0 on Yarn Client

Re: java.lang.ArrayIndexOutOfBoundsException: 0 on Yarn Client

2015-07-28 Thread Akhil Das
}*else*{ > > listvalues.add(string); > > System.*out*.println(string); > > } > > > > *From:* Akhil Das [mailto:ak...@sigmoidanalytics.com] >

RE: java.lang.ArrayIndexOutOfBoundsException: 0 on Yarn Client

2015-07-28 Thread Manohar Reddy
..@sigmoidanalytics.com] Sent: Tuesday, July 28, 2015 1:52 PM To: Manohar Reddy Cc: user@spark.apache.org Subject: Re: java.lang.ArrayIndexOutOfBoundsException: 0 on Yarn Client Put a try catch inside your code and inside the catch print out the length or the list itself which causes the ArrayInd

Re: java.lang.ArrayIndexOutOfBoundsException: 0 on Yarn Client

2015-07-28 Thread Akhil Das
Put a try catch inside your code and inside the catch print out the length or the list itself which causes the ArrayIndexOutOfBounds. It might happen that some of your data is not proper. Thanks Best Regards On Mon, Jul 27, 2015 at 8:24 PM, Manohar753 wrote: > Hi Team, > > can please some body

java.lang.ArrayIndexOutOfBoundsException: 0 on Yarn Client

2015-07-27 Thread Manohar753
Hi Team, can please some body help me out what am doing wrong to get the below exception while running my app on Yarn cluster with spark 1.4. Kafka stream am getting AND DOING foreachRDD and giving it to new thread for process.please find the below code snippet. JavaDStream unionStreams = Receiv