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

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

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

origin: apache/flink

} else {
  try {
    final ClusterClient<T> clusterClient = clusterDescriptor.retrieve(clusterId);
origin: apache/flink

try {
  clusterClient = clusterDescriptor.retrieve(clusterId);
  String webInterfaceUrl;
origin: apache/flink

final Thread shutdownHook;
if (clusterId != null) {
  client = clusterDescriptor.retrieve(clusterId);
  shutdownHook = null;
} else {
origin: apache/flink

try {
  clusterClient = clusterDescriptor.retrieve(context.getClusterId());
  try {
    clusterClient.cancel(new JobID(StringUtils.hexStringToByte(resultId)));
origin: apache/flink

/**
 * Tests that command line options override the configuration settings.
 */
@Test
public void testManualConfigurationOverride() throws Exception {
  final String localhost = "localhost";
  final int port = 1234;
  final Configuration configuration = getConfiguration();
  configuration.setString(JobManagerOptions.ADDRESS, localhost);
  configuration.setInteger(JobManagerOptions.PORT, port);
  @SuppressWarnings("unchecked")
  final AbstractCustomCommandLine<StandaloneClusterId> defaultCLI =
    (AbstractCustomCommandLine<StandaloneClusterId>) getCli(configuration);
  final String manualHostname = "123.123.123.123";
  final int manualPort = 4321;
  final String[] args = {"-m", manualHostname + ':' + manualPort};
  CommandLine commandLine = defaultCLI.parseCommandLineOptions(args, false);
  final ClusterDescriptor<StandaloneClusterId> clusterDescriptor =
    defaultCLI.createClusterDescriptor(commandLine);
  final ClusterClient<?> clusterClient = clusterDescriptor.retrieve(defaultCLI.getClusterId(commandLine));
  final LeaderConnectionInfo clusterConnectionInfo = clusterClient.getClusterConnectionInfo();
  assertThat(clusterConnectionInfo.getHostname(), Matchers.equalTo(manualHostname));
  assertThat(clusterConnectionInfo.getPort(), Matchers.equalTo(manualPort));
}
origin: apache/flink

/**
 * Tests that the configuration is properly passed via the DefaultCLI to the
 * created ClusterDescriptor.
 */
@Test
public void testConfigurationPassing() throws Exception {
  final Configuration configuration = getConfiguration();
  final String localhost = "localhost";
  final int port = 1234;
  configuration.setString(JobManagerOptions.ADDRESS, localhost);
  configuration.setInteger(JobManagerOptions.PORT, port);
  @SuppressWarnings("unchecked")
  final AbstractCustomCommandLine<StandaloneClusterId> defaultCLI =
    (AbstractCustomCommandLine<StandaloneClusterId>) getCli(configuration);
  final String[] args = {};
  CommandLine commandLine = defaultCLI.parseCommandLineOptions(args, false);
  final ClusterDescriptor<StandaloneClusterId> clusterDescriptor =
    defaultCLI.createClusterDescriptor(commandLine);
  final ClusterClient<?> clusterClient = clusterDescriptor.retrieve(defaultCLI.getClusterId(commandLine));
  final LeaderConnectionInfo clusterConnectionInfo = clusterClient.getClusterConnectionInfo();
  assertThat(clusterConnectionInfo.getHostname(), Matchers.equalTo(localhost));
  assertThat(clusterConnectionInfo.getPort(), Matchers.equalTo(port));
}
origin: org.apache.flink/flink-clients_2.11

} else {
  try {
    final ClusterClient<T> clusterClient = clusterDescriptor.retrieve(clusterId);
origin: com.alibaba.blink/flink-clients

} else {
  try {
    final ClusterClient<T> clusterClient = clusterDescriptor.retrieve(clusterId);
origin: org.apache.flink/flink-clients_2.11

final Thread shutdownHook;
if (clusterId != null) {
  client = clusterDescriptor.retrieve(clusterId);
  shutdownHook = null;
} else {
origin: com.alibaba.blink/flink-clients

  client = clusterDescriptor.retrieve(clusterId);
} else {
org.apache.flink.client.deploymentClusterDescriptorretrieve

Javadoc

Retrieves an existing Flink Cluster.

Popular methods of ClusterDescriptor

  • deployJobCluster
    Deploys a per-job cluster with the given job on the cluster.
  • close
  • deploySessionCluster
    Triggers deployment of a cluster.

Popular in Java

  • Updating database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • notifyDataSetChanged (ArrayAdapter)
  • getContentResolver (Context)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Runner (org.openjdk.jmh.runner)
  • 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