Codota Logo
ExecutionConfig.isFailTaskOnCheckpointError
Code IndexAdd Codota to your IDE (free)

How to use
isFailTaskOnCheckpointError
method
in
org.apache.flink.api.common.ExecutionConfig

Best Java code snippets using org.apache.flink.api.common.ExecutionConfig.isFailTaskOnCheckpointError (Showing top 5 results out of 315)

  • Common ways to obtain ExecutionConfig
private void myMethod () {
ExecutionConfig e =
  • Codota Iconnew ExecutionConfig()
  • Codota IconStreamExecutionEnvironment env;env.getConfig().disableSysoutLogging()
  • Codota IconExecutionEnvironment env;env.getConfig().disableSysoutLogging()
  • Smart code suggestions by Codota
}
origin: apache/flink

@Test
public void testFailIsDefaultConfig() {
  ExecutionConfig newExecutionConfig = new ExecutionConfig();
  Assert.assertTrue(newExecutionConfig.isFailTaskOnCheckpointError());
}
origin: apache/flink

getExecutionConfig().isFailTaskOnCheckpointError(),
getEnvironment());
origin: apache/flink

  public void doTestPropagationFromCheckpointConfig(boolean failTaskOnCheckpointErrors) throws Exception {
    StreamExecutionEnvironment streamExecutionEnvironment = StreamExecutionEnvironment.getExecutionEnvironment();
    streamExecutionEnvironment.setParallelism(1);
    streamExecutionEnvironment.getCheckpointConfig().setCheckpointInterval(1000);
    streamExecutionEnvironment.getCheckpointConfig().setFailOnCheckpointingErrors(failTaskOnCheckpointErrors);
    streamExecutionEnvironment.addSource(new SourceFunction<Integer>() {

      @Override
      public void run(SourceContext<Integer> ctx) throws Exception {
      }

      @Override
      public void cancel() {
      }

    }).addSink(new DiscardingSink<>());

    StreamGraph streamGraph = streamExecutionEnvironment.getStreamGraph();
    JobGraph jobGraph = StreamingJobGraphGenerator.createJobGraph(streamGraph);
    SerializedValue<ExecutionConfig> serializedExecutionConfig = jobGraph.getSerializedExecutionConfig();
    ExecutionConfig executionConfig =
      serializedExecutionConfig.deserializeValue(Thread.currentThread().getContextClassLoader());

    Assert.assertEquals(failTaskOnCheckpointErrors, executionConfig.isFailTaskOnCheckpointError());
  }
}
origin: org.apache.flink/flink-streaming-java

getExecutionConfig().isFailTaskOnCheckpointError(),
getEnvironment());
origin: org.apache.flink/flink-streaming-java_2.11

getExecutionConfig().isFailTaskOnCheckpointError(),
getEnvironment());
org.apache.flink.api.commonExecutionConfigisFailTaskOnCheckpointError

Javadoc

This method is visible because of the way the configuration is currently forwarded from the checkpoint config to the task. This should not be called by the user, please use CheckpointConfig.isFailTaskOnCheckpointError() instead.

Popular methods of ExecutionConfig

  • <init>
  • isObjectReuseEnabled
    Returns whether object reuse has been enabled or disabled. @see #enableObjectReuse()
  • disableSysoutLogging
    Disables the printing of progress update messages to System.out
  • getAutoWatermarkInterval
    Returns the interval of the automatic watermark emission.
  • setGlobalJobParameters
    Register a custom, serializable user configuration object.
  • enableObjectReuse
    Enables reusing objects that Flink internally uses for deserialization and passing data to user-code
  • setAutoWatermarkInterval
    Sets the interval of the automatic watermark emission. Watermarks are used throughout the streaming
  • disableObjectReuse
    Disables reusing objects that Flink internally uses for deserialization and passing data to user-cod
  • getRestartStrategy
    Returns the restart strategy which has been set for the current job.
  • isSysoutLoggingEnabled
    Gets whether progress update messages should be printed to System.out
  • registerKryoType
    Registers the given type with the serialization stack. If the type is eventually serialized as a POJ
  • registerTypeWithKryoSerializer
    Registers the given Serializer via its class as a serializer for the given type at the KryoSerialize
  • registerKryoType,
  • registerTypeWithKryoSerializer,
  • setRestartStrategy,
  • getParallelism,
  • addDefaultKryoSerializer,
  • getGlobalJobParameters,
  • getNumberOfExecutionRetries,
  • getRegisteredKryoTypes,
  • setParallelism,
  • getDefaultKryoSerializerClasses

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (ScheduledExecutorService)
  • putExtra (Intent)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • BoxLayout (javax.swing)
  • JFrame (javax.swing)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now