org.apache.spark.streaming.scheduler.StreamingListenerOutputOperationCompleted Java Examples
The following examples show how to use
org.apache.spark.streaming.scheduler.StreamingListenerOutputOperationCompleted.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ReceiverStreamListener.java From kafka-spark-consumer with Apache License 2.0 | 5 votes |
@Override public void onOutputOperationCompleted(StreamingListenerOutputOperationCompleted outPutOpsComplete) { Option<String> reason = outPutOpsComplete.outputOperationInfo().failureReason(); if (!reason.isEmpty()) { String failure = reason.get(); if (failure != null) { LOG.error("Output Operation failed due to {}", failure); } } }
Example #2
Source File: AbstractJavaEsSparkStreamingTest.java From elasticsearch-hadoop with Apache License 2.0 | 5 votes |
@Override public void onOutputOperationCompleted(StreamingListenerOutputOperationCompleted outputOperationCompleted) { String exceptionName = null; Option<String> failureReason = outputOperationCompleted.outputOperationInfo().failureReason(); if (failureReason.isDefined()) { String value = failureReason.get(); exceptionName = value.substring(0, value.indexOf(':')); } foundException = foundException || expectedException.getCanonicalName().equals(exceptionName); if (foundException) { exceptionType = exceptionName; } }
Example #3
Source File: AbstractJavaEsSparkStreamingTest.java From elasticsearch-hadoop with Apache License 2.0 | 5 votes |
@Override public void onOutputOperationCompleted(StreamingListenerOutputOperationCompleted outputOperationCompleted) { String exceptionName = null; Option<String> failureReason = outputOperationCompleted.outputOperationInfo().failureReason(); if (failureReason.isDefined()) { String value = failureReason.get(); exceptionName = value.substring(0, value.indexOf(':')); } foundException = foundException || expectedException.getCanonicalName().equals(exceptionName); if (foundException) { exceptionType = exceptionName; } }
Example #4
Source File: SparkStreamingListener.java From cxf with Apache License 2.0 | 4 votes |
@Override public void onOutputOperationCompleted(StreamingListenerOutputOperationCompleted event) { }