@Override public StandaloneClusterId getClusterId() { return StandaloneClusterId.getInstance(); }
@Override @Nullable public StandaloneClusterId getClusterId(CommandLine commandLine) { return StandaloneClusterId.getInstance(); }
private RestClusterClient<StandaloneClusterId> createRestClusterClient(final int port) throws Exception { final Configuration clientConfig = new Configuration(restConfig); clientConfig.setInteger(RestOptions.PORT, port); return new RestClusterClient<>( clientConfig, createRestClient(), StandaloneClusterId.getInstance(), (attempt) -> 0, null); }
@Before public void setUp() throws Exception { final Configuration clientConfig = new Configuration(); clientConfig.setInteger(RestOptions.RETRY_MAX_ATTEMPTS, 0); clientConfig.setLong(RestOptions.RETRY_DELAY, 0); clientConfig.addAll(CLUSTER.getClientConfiguration()); client = new RestClusterClient<>( clientConfig, StandaloneClusterId.getInstance() ); }
StandaloneClusterId.getInstance());
@Override public StandaloneClusterId getClusterId() { return StandaloneClusterId.getInstance(); }
@Override public StandaloneClusterId getClusterId() { return StandaloneClusterId.getInstance(); }
@Override @Nullable public StandaloneClusterId getClusterId(CommandLine commandLine) { return StandaloneClusterId.getInstance(); }
@Override @Nullable public StandaloneClusterId getClusterId(CommandLine commandLine) { return StandaloneClusterId.getInstance(); }
@Override @Nullable public StandaloneClusterId getClusterId(CommandLine commandLine) { return StandaloneClusterId.getInstance(); }
public static ClusterClient createStandaloneClient(LauncherOptions launcherOptions) throws Exception { String flinkConfDir = launcherOptions.getFlinkconf(); Configuration config = GlobalConfiguration.loadConfiguration(flinkConfDir); StandaloneClusterDescriptor standaloneClusterDescriptor = new StandaloneClusterDescriptor(config); RestClusterClient clusterClient = standaloneClusterDescriptor.retrieve(StandaloneClusterId.getInstance()); LeaderConnectionInfo connectionInfo = clusterClient.getClusterConnectionInfo(); InetSocketAddress address = AkkaUtils.getInetSocketAddressFromAkkaURL(connectionInfo.getAddress()); config.setString(JobManagerOptions.ADDRESS, address.getAddress().getHostName()); config.setInteger(JobManagerOptions.PORT, address.getPort()); clusterClient.setDetached(true); return clusterClient; }
public static ClusterClient createStandaloneClient(LauncherOptions launcherOptions) throws Exception { String flinkConfDir = launcherOptions.getFlinkconf(); Configuration config = GlobalConfiguration.loadConfiguration(flinkConfDir); StandaloneClusterDescriptor standaloneClusterDescriptor = new StandaloneClusterDescriptor(config); RestClusterClient clusterClient = standaloneClusterDescriptor.retrieve(StandaloneClusterId.getInstance()); LeaderConnectionInfo connectionInfo = clusterClient.getClusterConnectionInfo(); InetSocketAddress address = AkkaUtils.getInetSocketAddressFromAkkaURL(connectionInfo.getAddress()); config.setString(JobManagerOptions.ADDRESS, address.getAddress().getHostName()); config.setInteger(JobManagerOptions.PORT, address.getPort()); clusterClient.setDetached(true); return clusterClient; }