spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: Exceptions not caught?
Date Thu, 23 Oct 2014 22:44:49 GMT
Can you show the stack trace ?

Also, how do you catch exceptions ? Did you specify TProtocolException ?

Cheers

On Thu, Oct 23, 2014 at 3:40 PM, ankits <ankitsoni9@gmail.com> wrote:

> Hi, I'm running a spark job and encountering an exception related to
> thrift.
> I wanted to know where this is being thrown, but the stack trace is
> completely useless. So I started adding try catches, to the point where my
> whole main method that does everything is surrounded with a try catch. Even
> then, nothing is being caught. I still see this message though:
>
> 2014-10-23 15:39:50,845  ERROR [] Exception in task 1.0 in stage 1.0 (TID
> 1)
> java.io.IOException: org.apache.thrift.protocol.TProtocolException:
> .....
>
> What is going on? Why isn't the exception just being handled by the
> try-catch? (BTW this is in Scala)
>
>
>
> --
> View this message in context:
> http://apache-spark-user-list.1001560.n3.nabble.com/Exceptions-not-caught-tp17157.html
> Sent from the Apache Spark User List mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
> For additional commands, e-mail: user-help@spark.apache.org
>
>

Mime
View raw message