Hi Team
I have the below situation.
val ssc = ....
val msgStream = ..... //SparkKafkaDirectAPI
val wordCountPair = TransformStream.transform(msgStream)
/wordCountPair.foreachRDD(rdd =>
try{
//Some action that causes exception
}catch {
case ex1 : Exception => {
// *How to get hold of the msgStream, so that I can log the
actual message that caused the exception.*
}
)/
Regards,
Sam
--
View this message in context:
http://apache-spark-user-list.1001560.n3.nabble.com/Getting-parent-RDD-tp24701.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]