Tabnine Logo
ClusterDescriptor.deployJobCluster
Code IndexAdd Tabnine to your IDE (free)

How to use
deployJobCluster
method
in
org.apache.flink.client.deployment.ClusterDescriptor

Best Java code snippets using org.apache.flink.client.deployment.ClusterDescriptor.deployJobCluster (Showing top 4 results out of 315)

origin: apache/flink

private <T> void deployJobOnNewCluster(
    ClusterDescriptor<T> clusterDescriptor,
    JobGraph jobGraph,
    Result<T> result,
    ClassLoader classLoader) throws Exception {
  ClusterClient<T> clusterClient = null;
  try {
    // deploy job cluster with job attached
    clusterClient = clusterDescriptor.deployJobCluster(context.getClusterSpec(), jobGraph, false);
    // save information about the new cluster
    result.setClusterInformation(clusterClient.getClusterId(), clusterClient.getWebInterfaceURL());
    // get result
    if (awaitJobResult) {
      // we need to hard cast for now
      final JobExecutionResult jobResult = ((RestClusterClient<T>) clusterClient)
          .requestJobResult(jobGraph.getJobID())
          .get()
          .toJobExecutionResult(context.getClassLoader()); // throws exception if job fails
      executionResultBucket.add(jobResult);
    }
  } finally {
    try {
      if (clusterClient != null) {
        clusterClient.shutdown();
      }
    } catch (Exception e) {
      // ignore
    }
  }
}
origin: apache/flink

client = clusterDescriptor.deployJobCluster(
  clusterSpecification,
  jobGraph,
origin: org.apache.flink/flink-clients_2.11

client = clusterDescriptor.deployJobCluster(
  clusterSpecification,
  jobGraph,
origin: com.alibaba.blink/flink-clients

client = clusterDescriptor.deployJobCluster(
  clusterSpecification,
  jobGraph,
org.apache.flink.client.deploymentClusterDescriptordeployJobCluster

Javadoc

Deploys a per-job cluster with the given job on the cluster.

Popular methods of ClusterDescriptor

  • retrieve
    Retrieves an existing Flink Cluster.
  • close
  • deploySessionCluster
    Triggers deployment of a cluster.

Popular in Java

  • Updating database using SQL prepared statement
  • runOnUiThread (Activity)
  • getContentResolver (Context)
  • compareTo (BigDecimal)
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Reference (javax.naming)
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JComboBox (javax.swing)
  • JLabel (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now