Open mjose007 opened 4 years ago
Any updates
@mjose007
Sorry for the delayed response.
Are you able to see any streaming lens related logs (even errors or failures) in your spark driver logs?
Also, you don't need need to registerListeners explicitly, this line is not needed
streamingLens.registerListeners();
only this should be sufficient
StreamingLens streamingLens = new StreamingLens(spark, scalaMap);
My guess is it would be throwing an exception since you're trying two register the listeners twice based on this code
try {
sparkSession.sparkContext.addSparkListener(streamingAppListener)
logDebug("Successfully registered Spark Listener")
} catch {
case e: Exception =>
throw new SparkException("Error in registering Spark Listener " +
"Won't report StreamingLens Insights" + e.getMessage)
}
try {
sparkSession.streams.addListener(queryProgressListener)
logDebug("Successfully registered StreamingQuery Listener")
} catch {
case e: Exception =>
sparkSession.sparkContext.removeSparkListener(streamingAppListener)
throw new SparkException("Error in registering StreamingQuery Listener " +
"Won't report StreamingLens Insights" + e.getMessage)
}
}
@mjose007 Kindly suggest https://github.com/qubole/streaminglens/issues/5.
For me state is always showing same. NONEWBATCH
I am running my code locally in intellij idea with sreaming lens maven dependancy . I am getting below error . No output , let me know what i am doing wrong here