Java Code Examples for org.apache.flink.runtime.minicluster.TestingMiniCluster#start()
The following examples show how to use
org.apache.flink.runtime.minicluster.TestingMiniCluster#start() .
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: BackPressureStatsTrackerImplITCase.java From Flink-CEPplus with Apache License 2.0 | 6 votes |
@Before public void setUp() throws Exception { networkBufferPool = new NetworkBufferPool(100, 8192); testBufferPool = networkBufferPool.createBufferPool(1, Integer.MAX_VALUE); final Configuration configuration = new Configuration(); configuration.setInteger(WebOptions.BACKPRESSURE_NUM_SAMPLES, BACKPRESSURE_NUM_SAMPLES); testingMiniCluster = new TestingMiniCluster(new TestingMiniClusterConfiguration.Builder() .setNumTaskManagers(JOB_PARALLELISM) .setConfiguration(configuration) .build()); testingMiniCluster.start(); dispatcherGateway = testingMiniCluster.getDispatcherGatewayFuture().get(TIMEOUT_SECONDS, TimeUnit.SECONDS); }
Example 2
Source File: BatchFineGrainedRecoveryITCase.java From flink with Apache License 2.0 | 6 votes |
@SuppressWarnings("OverlyBroadThrowsClause") @Before public void setup() throws Exception { Configuration configuration = new Configuration(); configuration.setString(JobManagerOptions.EXECUTION_FAILOVER_STRATEGY, PIPELINED_REGION_RESTART_STRATEGY_NAME); miniCluster = new TestingMiniCluster( new Builder() .setNumTaskManagers(1) .setNumSlotsPerTaskManager(1) .setConfiguration(configuration) .setRpcServiceSharing(RpcServiceSharing.DEDICATED) .build(), null); miniCluster.start(); client = new MiniClusterClient(miniCluster); lastTaskManagerIndexInMiniCluster = new AtomicInteger(0); failureTracker = new GlobalMapFailureTracker(MAP_NUMBER); }
Example 3
Source File: BatchFineGrainedRecoveryITCase.java From flink with Apache License 2.0 | 6 votes |
@SuppressWarnings("OverlyBroadThrowsClause") @Before public void setup() throws Exception { Configuration configuration = new Configuration(); configuration.setString(JobManagerOptions.EXECUTION_FAILOVER_STRATEGY, PIPELINED_REGION_RESTART_STRATEGY_NAME); miniCluster = new TestingMiniCluster( new Builder() .setNumTaskManagers(1) .setNumSlotsPerTaskManager(1) .setConfiguration(configuration) .setRpcServiceSharing(RpcServiceSharing.DEDICATED) .build(), null); miniCluster.start(); client = new MiniClusterClient(miniCluster); lastTaskManagerIndexInMiniCluster = new AtomicInteger(0); failureTracker = new GlobalMapFailureTracker(MAP_NUMBER); }
Example 4
Source File: LeaderChangeClusterComponentsTest.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
@BeforeClass public static void setupClass() throws Exception { highAvailabilityServices = new TestingEmbeddedHaServices(TestingUtils.defaultExecutor()); miniCluster = new TestingMiniCluster( new TestingMiniClusterConfiguration.Builder() .setNumTaskManagers(NUM_TMS) .setNumSlotsPerTaskManager(SLOTS_PER_TM) .build(), () -> highAvailabilityServices); miniCluster.start(); }
Example 5
Source File: TaskExecutorITCase.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
@Before public void setup() throws Exception { miniCluster = new TestingMiniCluster( new TestingMiniClusterConfiguration.Builder() .setNumTaskManagers(NUM_TMS) .setNumSlotsPerTaskManager(SLOTS_PER_TM) .build(), null); miniCluster.start(); }
Example 6
Source File: BackPressureITCase.java From flink with Apache License 2.0 | 5 votes |
@Before public void setUp() throws Exception { final Configuration configuration = new Configuration(); configuration.addAll(createBackPressureSamplingConfiguration()); configuration.addAll(createNetworkBufferConfiguration()); final TestingMiniClusterConfiguration testingMiniClusterConfiguration = new TestingMiniClusterConfiguration.Builder() .setNumSlotsPerTaskManager(NUM_TASKS) .setConfiguration(configuration) .build(); testingMiniCluster = new TestingMiniCluster(testingMiniClusterConfiguration); testingMiniCluster.start(); dispatcherGateway = testingMiniCluster.getDispatcherGatewayFuture().get(); }
Example 7
Source File: LeaderChangeClusterComponentsTest.java From flink with Apache License 2.0 | 5 votes |
@BeforeClass public static void setupClass() throws Exception { highAvailabilityServices = new TestingEmbeddedHaServices(TestingUtils.defaultExecutor()); miniCluster = new TestingMiniCluster( new TestingMiniClusterConfiguration.Builder() .setNumTaskManagers(NUM_TMS) .setNumSlotsPerTaskManager(SLOTS_PER_TM) .build(), () -> highAvailabilityServices); miniCluster.start(); }
Example 8
Source File: TaskExecutorITCase.java From flink with Apache License 2.0 | 5 votes |
@Before public void setup() throws Exception { miniCluster = new TestingMiniCluster( new TestingMiniClusterConfiguration.Builder() .setNumTaskManagers(NUM_TMS) .setNumSlotsPerTaskManager(SLOTS_PER_TM) .build(), null); miniCluster.start(); }
Example 9
Source File: BackPressureITCase.java From flink with Apache License 2.0 | 5 votes |
@Before public void setUp() throws Exception { final Configuration configuration = new Configuration(); configuration.addAll(createBackPressureSamplingConfiguration()); configuration.addAll(createNetworkBufferConfiguration()); final TestingMiniClusterConfiguration testingMiniClusterConfiguration = new TestingMiniClusterConfiguration.Builder() .setNumSlotsPerTaskManager(NUM_TASKS) .setConfiguration(configuration) .build(); testingMiniCluster = new TestingMiniCluster(testingMiniClusterConfiguration); testingMiniCluster.start(); dispatcherGateway = testingMiniCluster.getDispatcherGatewayFuture().get(); }
Example 10
Source File: LeaderChangeClusterComponentsTest.java From flink with Apache License 2.0 | 5 votes |
@BeforeClass public static void setupClass() throws Exception { highAvailabilityServices = new TestingEmbeddedHaServices(TestingUtils.defaultExecutor()); miniCluster = new TestingMiniCluster( new TestingMiniClusterConfiguration.Builder() .setNumTaskManagers(NUM_TMS) .setNumSlotsPerTaskManager(SLOTS_PER_TM) .build(), () -> highAvailabilityServices); miniCluster.start(); }
Example 11
Source File: TaskExecutorITCase.java From flink with Apache License 2.0 | 5 votes |
@Before public void setup() throws Exception { miniCluster = new TestingMiniCluster( new TestingMiniClusterConfiguration.Builder() .setNumTaskManagers(NUM_TMS) .setNumSlotsPerTaskManager(SLOTS_PER_TM) .build(), null); miniCluster.start(); }